pub struct FindOptions {
pub root_paths: Vec<PathBuf>,
pub min_size: Option<u64>,
pub older_than: Option<Duration>,
pub file_types: Option<Vec<FileCategory>>,
pub max_results: Option<usize>,
pub validate_types: bool,
pub extra_exclusions: Vec<String>,
}Expand description
Options for the file finder.
Fields§
§root_paths: Vec<PathBuf>Root directories to scan.
min_size: Option<u64>Minimum file size in bytes (files smaller than this are skipped).
older_than: Option<Duration>Only include files older than this duration (based on mtime).
file_types: Option<Vec<FileCategory>>Filter to specific file type categories.
max_results: Option<usize>Limit results to the top N largest files (uses BinaryHeap for memory efficiency).
validate_types: boolWhether to validate file types with magic bytes (default: true).
extra_exclusions: Vec<String>Additional paths to exclude (beyond the defaults).
Trait Implementations§
Source§impl Clone for FindOptions
impl Clone for FindOptions
Source§fn clone(&self) -> FindOptions
fn clone(&self) -> FindOptions
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 moreSource§impl Debug for FindOptions
impl Debug for FindOptions
Auto Trait Implementations§
impl Freeze for FindOptions
impl RefUnwindSafe for FindOptions
impl Send for FindOptions
impl Sync for FindOptions
impl Unpin for FindOptions
impl UnsafeUnpin for FindOptions
impl UnwindSafe for FindOptions
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