pub struct ScanConfig {
pub root: PathBuf,
pub follow_links: bool,
pub include_hidden: bool,
pub max_depth: Option<usize>,
pub apparent_size: bool,
}Expand description
Configuration for a filesystem scan.
Fields§
§root: PathBufRoot path to scan
follow_links: boolWhether to follow symbolic links (default: false)
Whether to include hidden files (default: true)
max_depth: Option<usize>Maximum directory depth (None = unlimited)
apparent_size: boolWhether to use apparent size instead of disk usage (default: false)
Trait Implementations§
Source§impl Clone for ScanConfig
impl Clone for ScanConfig
Source§fn clone(&self) -> ScanConfig
fn clone(&self) -> ScanConfig
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for ScanConfig
impl RefUnwindSafe for ScanConfig
impl Send for ScanConfig
impl Sync for ScanConfig
impl Unpin for ScanConfig
impl UnsafeUnpin for ScanConfig
impl UnwindSafe for ScanConfig
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
Mutably borrows from an owned value. Read more