pub struct Predicates {
pub min_size: Option<u64>,
pub max_size: Option<u64>,
pub file_type: Option<FileType>,
pub mtime_after: Option<SystemTime>,
pub mtime_before: Option<SystemTime>,
pub ctime_after: Option<SystemTime>,
pub ctime_before: Option<SystemTime>,
pub follow_symlinks: bool,
}Expand description
Predicates for filtering files based on metadata
This struct provides a flexible way to filter files based on various attributes like size, type, and timestamps.
Fields§
§min_size: Option<u64>Minimum file size in bytes
max_size: Option<u64>Maximum file size in bytes
file_type: Option<FileType>Required file type
mtime_after: Option<SystemTime>Last modified after this time
mtime_before: Option<SystemTime>Last modified before this time
ctime_after: Option<SystemTime>Created after this time
ctime_before: Option<SystemTime>Created before this time
follow_symlinks: boolWhether to follow symlinks for metadata checks
Implementations§
Trait Implementations§
Source§impl Clone for Predicates
impl Clone for Predicates
Source§fn clone(&self) -> Predicates
fn clone(&self) -> Predicates
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 Predicates
impl RefUnwindSafe for Predicates
impl Send for Predicates
impl Sync for Predicates
impl Unpin for Predicates
impl UnwindSafe for Predicates
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