Enum koron_query_parser::comparison::CompareOp
source · pub enum CompareOp {
Lt {
value: String,
},
LtEq {
value: String,
},
Gt {
value: String,
},
GtEq {
value: String,
},
Eq {
value: String,
},
NotEq {
value: String,
},
IsNull,
IsNotNull,
IsTrue,
IsNotTrue,
IsFalse,
IsNotFalse,
}
Expand description
The comparison operation between the value of an unspecified column and some constant values.
Variants§
Lt
Check if column’s value is less than value
.
LtEq
Check if column’s value is less than or equal to value
.
Gt
Check if column’s value is greater than value
.
GtEq
Check if column’s value is greater than or equal to value
.
Eq
Check if column’s value is equal to value
.
NotEq
Check if column’s value is not equal to value
.
IsNull
Check if column’s value is NULL
.
IsNotNull
Check if column’s value is not NULL
.
IsTrue
Check if column’s value is true
.
IsNotTrue
Check if column’s value is not true
.
IsFalse
Check if column’s value is false
.
IsNotFalse
Check if column’s value is not false
.
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
source§impl<'__s> ToSchema<'__s> for CompareOp
impl<'__s> ToSchema<'__s> 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 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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)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.