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,
pub learning_mode: LearningMode,
pub approved_review_paths: HashSet<PathBuf>,
pub custom_rules: Vec<CustomRule>,
}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.
learning_mode: LearningModeObserve large cache-like directories without making them cleanable.
approved_review_paths: HashSet<PathBuf>Exact review paths approved through a scanner-recognized learning rule.
custom_rules: Vec<CustomRule>Exact-name, direct-marker rules loaded from configuration.
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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>
Converts
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>
Converts
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