pub enum FilterCondition {
Show 13 variants
Eq(String, FilterValue),
Ne(String, FilterValue),
Gt(String, FilterValue),
Gte(String, FilterValue),
Lt(String, FilterValue),
Lte(String, FilterValue),
In(String, FilterValue),
NotIn(String, FilterValue),
Contains(String, String),
StartsWith(String, String),
All(Vec<FilterCondition>),
Any(Vec<FilterCondition>),
Not(Box<FilterCondition>),
}Expand description
Filter condition operators
Variants§
Eq(String, FilterValue)
Equal to
Ne(String, FilterValue)
Not equal to
Gt(String, FilterValue)
Greater than
Gte(String, FilterValue)
Greater than or equal to
Lt(String, FilterValue)
Less than
Lte(String, FilterValue)
Less than or equal to
In(String, FilterValue)
Value is in list
NotIn(String, FilterValue)
Value is not in list
Contains(String, String)
Field contains substring
StartsWith(String, String)
Field starts with prefix
All(Vec<FilterCondition>)
All conditions must match (AND)
Any(Vec<FilterCondition>)
Any condition must match (OR)
Not(Box<FilterCondition>)
Negate condition (NOT)
Trait Implementations§
Source§impl Clone for FilterCondition
impl Clone for FilterCondition
Source§fn clone(&self) -> FilterCondition
fn clone(&self) -> FilterCondition
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 FilterCondition
impl Debug for FilterCondition
Source§impl<'de> Deserialize<'de> for FilterCondition
impl<'de> Deserialize<'de> for FilterCondition
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for FilterCondition
impl PartialEq for FilterCondition
Source§impl Serialize for FilterCondition
impl Serialize for FilterCondition
impl StructuralPartialEq for FilterCondition
Auto Trait Implementations§
impl Freeze for FilterCondition
impl RefUnwindSafe for FilterCondition
impl Send for FilterCondition
impl Sync for FilterCondition
impl Unpin for FilterCondition
impl UnwindSafe for FilterCondition
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