pub enum CompareOp {
Show 14 variants
Eq,
Ne,
Lt,
Le,
Gt,
Ge,
Contains,
StartsWith,
EndsWith,
Matches,
In,
NotIn,
Exists,
NotExists,
}Expand description
Comparison operators for conditions
Variants§
Eq
Equal to
Ne
Not equal to
Lt
Less than
Le
Less than or equal
Gt
Greater than
Ge
Greater than or equal
Contains
Contains (for strings/arrays)
StartsWith
Starts with (for strings)
EndsWith
Ends with (for strings)
Matches
Matches regex pattern
In
Value is in set
NotIn
Value is not in set
Exists
Value exists (is not null)
NotExists
Value does not exist (is null)
Implementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for CompareOp
impl<'de> Deserialize<'de> for CompareOp
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
impl Copy for CompareOp
impl Eq for CompareOp
impl StructuralPartialEq for CompareOp
Auto Trait Implementations§
impl Freeze for CompareOp
impl RefUnwindSafe for CompareOp
impl Send for CompareOp
impl Sync for CompareOp
impl Unpin for CompareOp
impl UnsafeUnpin for CompareOp
impl UnwindSafe for CompareOp
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> CallHasher for T
impl<T> CallHasher for T
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.