pub enum Comparison {
Eq,
Ne,
Gt,
Gte,
Lt,
Lte,
In,
NotIn,
StartsWith,
EndsWith,
}Expand description
Comparison operator for Predicate::Compare.
Variants§
Eq
attr == value
Ne
attr != value
Gt
attr > value (numeric)
Gte
attr >= value (numeric)
Lt
attr < value (numeric)
Lte
attr <= value (numeric)
In
value must be a JSON array; true when attr is one of its elements.
NotIn
Inverse of In.
StartsWith
String prefix match.
EndsWith
String suffix match.
Trait Implementations§
Source§impl Clone for Comparison
impl Clone for Comparison
Source§fn clone(&self) -> Comparison
fn clone(&self) -> Comparison
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 Comparison
impl Debug for Comparison
Source§impl<'de> Deserialize<'de> for Comparison
impl<'de> Deserialize<'de> for Comparison
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 Comparison
impl PartialEq for Comparison
Source§fn eq(&self, other: &Comparison) -> bool
fn eq(&self, other: &Comparison) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for Comparison
impl Serialize for Comparison
impl Copy for Comparison
impl Eq for Comparison
impl StructuralPartialEq for Comparison
Auto Trait Implementations§
impl Freeze for Comparison
impl RefUnwindSafe for Comparison
impl Send for Comparison
impl Sync for Comparison
impl Unpin for Comparison
impl UnsafeUnpin for Comparison
impl UnwindSafe for Comparison
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