pub enum ImageQueryExpr {
Tag(String),
And(Box<ImageQueryExpr>, Box<ImageQueryExpr>),
Or(Box<ImageQueryExpr>, Box<ImageQueryExpr>),
Not(Box<ImageQueryExpr>),
DateUntil(DateTime<Utc>),
DateSince(DateTime<Utc>),
}Expand description
Represents a logical tag-based query expression.
Variants§
Tag(String)
A single tag condition.
And(Box<ImageQueryExpr>, Box<ImageQueryExpr>)
Logical AND of two subexpressions.
Or(Box<ImageQueryExpr>, Box<ImageQueryExpr>)
Logical OR of two subexpressions.
Not(Box<ImageQueryExpr>)
Logical NOT of a subexpression.
DateUntil(DateTime<Utc>)
A condition to filter results until a specific date.
DateSince(DateTime<Utc>)
A condition to filter results since a specific date.
Implementations§
Source§impl ImageQueryExpr
impl ImageQueryExpr
Sourcepub fn and(self, other: impl Into<ImageQueryExpr>) -> Self
pub fn and(self, other: impl Into<ImageQueryExpr>) -> Self
Sourcepub fn or(self, other: impl Into<ImageQueryExpr>) -> Self
pub fn or(self, other: impl Into<ImageQueryExpr>) -> Self
Sourcepub fn not(expr: impl Into<ImageQueryExpr>) -> Self
pub fn not(expr: impl Into<ImageQueryExpr>) -> Self
Sourcepub fn date_until(date: impl AsRef<str>) -> Self
pub fn date_until(date: impl AsRef<str>) -> Self
Sourcepub fn date_since(date: impl AsRef<str>) -> Self
pub fn date_since(date: impl AsRef<str>) -> Self
Trait Implementations§
Source§impl Clone for ImageQueryExpr
impl Clone for ImageQueryExpr
Source§fn clone(&self) -> ImageQueryExpr
fn clone(&self) -> ImageQueryExpr
Returns a copy 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 ImageQueryExpr
impl Debug for ImageQueryExpr
Source§impl PartialEq for ImageQueryExpr
impl PartialEq for ImageQueryExpr
impl StructuralPartialEq for ImageQueryExpr
Auto Trait Implementations§
impl Freeze for ImageQueryExpr
impl RefUnwindSafe for ImageQueryExpr
impl Send for ImageQueryExpr
impl Sync for ImageQueryExpr
impl Unpin for ImageQueryExpr
impl UnwindSafe for ImageQueryExpr
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> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§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