pub struct DuConfig {Show 18 fields
pub all: bool,
pub apparent_size: bool,
pub block_size: u64,
pub human_readable: bool,
pub si: bool,
pub total: bool,
pub max_depth: Option<usize>,
pub summarize: bool,
pub one_file_system: bool,
pub dereference: bool,
pub separate_dirs: bool,
pub count_links: bool,
pub null_terminator: bool,
pub threshold: Option<i64>,
pub show_time: bool,
pub time_style: String,
pub exclude_patterns: Vec<String>,
pub inodes: bool,
}Expand description
Configuration for the du command.
Fields§
§all: boolShow counts for all files, not just directories.
apparent_size: boolPrint apparent sizes rather than disk usage.
block_size: u64Block size for output scaling.
human_readable: boolHuman-readable output (powers of 1024).
si: boolHuman-readable output (powers of 1000).
total: boolProduce a grand total.
max_depth: Option<usize>Maximum depth of directory traversal to display.
summarize: boolOnly display a total for each argument.
one_file_system: boolStay on the same filesystem.
dereference: boolDereference all symbolic links.
separate_dirs: boolFor directories, do not include size of subdirectories.
count_links: boolCount sizes of hard-linked files multiple times.
null_terminator: boolEnd output lines with NUL instead of newline.
threshold: Option<i64>Exclude entries smaller (or larger if negative) than this threshold.
show_time: boolShow modification time of entries.
time_style: StringTime format style (full-iso, long-iso, iso).
exclude_patterns: Vec<String>Glob patterns to exclude.
inodes: boolCount inodes instead of sizes.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for DuConfig
impl RefUnwindSafe for DuConfig
impl Send for DuConfig
impl Sync for DuConfig
impl Unpin for DuConfig
impl UnsafeUnpin for DuConfig
impl UnwindSafe for DuConfig
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more