pub enum Operator {
Show 29 variants
Eq,
Ne,
Gt,
Gte,
Lt,
Lte,
Fuzzy,
In,
NotIn,
IsNull,
IsNotNull,
Contains,
KeyExists,
JsonExists,
JsonQuery,
JsonValue,
Like,
NotLike,
ILike,
NotILike,
Between,
NotBetween,
Exists,
NotExists,
Regex,
RegexI,
SimilarTo,
ContainedBy,
Overlaps,
}Variants§
Eq
Ne
Gt
Gte
Lt
Lte
Fuzzy
In
NotIn
IsNull
IsNotNull
Contains
KeyExists
JsonExists
JsonQuery
JsonValue
Like
NotLike
ILike
NotILike
Between
NotBetween
Exists
NotExists
Regex
RegexI
SimilarTo
ContainedBy
Overlaps
Implementations§
Source§impl Operator
impl Operator
Sourcepub fn sql_symbol(&self) -> &'static str
pub fn sql_symbol(&self) -> &'static str
For simple operators, returns the symbol directly. For complex operators (BETWEEN, EXISTS), returns the keyword.
Sourcepub fn needs_value(&self) -> bool
pub fn needs_value(&self) -> bool
IS NULL, IS NOT NULL, EXISTS, NOT EXISTS don’t need values.
pub fn is_simple_binary(&self) -> bool
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Operator
impl<'de> Deserialize<'de> for Operator
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 Operator
impl Eq for Operator
impl StructuralPartialEq for Operator
Auto Trait Implementations§
impl Freeze for Operator
impl RefUnwindSafe for Operator
impl Send for Operator
impl Sync for Operator
impl Unpin for Operator
impl UnwindSafe for Operator
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<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.