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

The scale to compare the size against.

The unit set to use.

The amount of places if the decimal part is non-zero.

The amount of zeroes to display of the decimal part is zero.

Wether to use the full suffix or its abbreveation.