pub enum Term {
Name(String),
Path(String),
Wildcard(String),
PathWildcard(String),
Regex(String),
Ext(Vec<String>),
Size {
min: u64,
max: u64,
},
Mtime {
start: Option<Civil>,
end: Option<Civil>,
},
IsDir(bool),
Not(Box<Self>),
}Expand description
A single matchable condition within an AND group of the Ast.
Variants§
Name(String)
Substring in the file name.
Path(String)
Substring in the full path (term contained \ or used path:).
Wildcard(String)
*/? pattern matching the whole file name.
PathWildcard(String)
*/? pattern matched unanchored against the full path.
Regex(String)
regex: — applied to the file name.
Ext(Vec<String>)
ext: — any of these extensions (without dots, original case).
Size
size: — inclusive byte range.
Mtime
dm: — [start, end) at local midnight; None = unbounded.
Fields
IsDir(bool)
folder: / file:.
Not(Box<Self>)
Logical negation of the inner term.
Trait Implementations§
impl StructuralPartialEq for Term
Auto Trait Implementations§
impl Freeze for Term
impl RefUnwindSafe for Term
impl Send for Term
impl Sync for Term
impl Unpin for Term
impl UnsafeUnpin for Term
impl UnwindSafe for Term
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,
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
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