pub struct ScanOptions {
pub roots: Vec<PathBuf>,
pub categories: HashSet<Category>,
pub include_global_caches: bool,
pub include_expensive_caches: bool,
pub max_depth: usize,
pub excludes: Vec<String>,
pub older_than: Option<Duration>,
pub min_size: u64,
pub protect_git_tracked: bool,
}Expand description
Scanner configuration.
Fields§
§roots: Vec<PathBuf>Filesystem roots to inspect.
categories: HashSet<Category>Artifact categories to include.
include_global_caches: boolInclude known global package and tool caches.
include_expensive_caches: boolInclude large runtime and model caches.
max_depth: usizeMaximum traversal depth below each root.
excludes: Vec<String>User-provided path globs to skip.
older_than: Option<Duration>Only include artifacts whose latest modification is at least this old.
min_size: u64Only include artifacts at least this large.
protect_git_tracked: boolRefuse candidates containing Git-tracked files.
Trait Implementations§
Source§impl Clone for ScanOptions
impl Clone for ScanOptions
Source§fn clone(&self) -> ScanOptions
fn clone(&self) -> ScanOptions
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 ScanOptions
impl RefUnwindSafe for ScanOptions
impl Send for ScanOptions
impl Sync for ScanOptions
impl Unpin for ScanOptions
impl UnsafeUnpin for ScanOptions
impl UnwindSafe for ScanOptions
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