mirror of
https://git.proxmox.com/git/proxmox
synced 2025-07-31 00:54:33 +00:00
HumanByte: make fields public
Signed-off-by: Dietmar Maurer <dietmar@proxmox.com>
This commit is contained in:
parent
9e8f90e667
commit
83af1cdce4
@ -124,9 +124,9 @@ fn strip_unit(v: &str) -> (&str, SizeUnit) {
|
|||||||
#[derive(Debug, Copy, Clone, UpdaterType, PartialEq)]
|
#[derive(Debug, Copy, Clone, UpdaterType, PartialEq)]
|
||||||
pub struct HumanByte {
|
pub struct HumanByte {
|
||||||
/// The siginficant value, it does not includes any factor of the `unit`
|
/// The siginficant value, it does not includes any factor of the `unit`
|
||||||
size: f64,
|
pub size: f64,
|
||||||
/// The scale/unit of the value
|
/// The scale/unit of the value
|
||||||
unit: SizeUnit,
|
pub unit: SizeUnit,
|
||||||
}
|
}
|
||||||
|
|
||||||
fn verify_human_byte(s: &str) -> Result<(), Error> {
|
fn verify_human_byte(s: &str) -> Result<(), Error> {
|
||||||
|
Loading…
Reference in New Issue
Block a user