forked from Proxmox/proxmox
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)]
|
||||
pub struct HumanByte {
|
||||
/// The siginficant value, it does not includes any factor of the `unit`
|
||||
size: f64,
|
||||
pub size: f64,
|
||||
/// The scale/unit of the value
|
||||
unit: SizeUnit,
|
||||
pub unit: SizeUnit,
|
||||
}
|
||||
|
||||
fn verify_human_byte(s: &str) -> Result<(), Error> {
|
||||
|
Loading…
x
Reference in New Issue
Block a user