Struct humansize::file_size_opts::FileSizeOpts
[−]
[src]
pub struct FileSizeOpts { pub divider: Standard, pub units: Standard, pub decimal_places: usize, pub decimal_zeroes: usize, pub long_suffix: bool, }
Holds the options to be passed to the file_size
method.
Fields
divider: Standard
The scale to compare the size against.
units: Standard
The unit set to use.
decimal_places: usize
The amount of places if the decimal part is non-zero.
decimal_zeroes: usize
The amount of zeroes to display of the decimal part is zero.
long_suffix: bool
Wether to use the full suffix or its abbreveation.