pub enum QueryOperator {
Eq(FieldType),
Ne(FieldType),
Gt(FieldType),
Gte(FieldType),
Lt(FieldType),
Lte(FieldType),
In(Vec<FieldType>),
Nin(Vec<FieldType>),
Regex(String),
Exists(bool),
}
Expand description
Query operators for filtering
ekoDB uses its own operator format, not MongoDB-style $ operators
Variants§
Eq(FieldType)
Equal to
Ne(FieldType)
Not equal to
Gt(FieldType)
Greater than
Gte(FieldType)
Greater than or equal to
Lt(FieldType)
Less than
Lte(FieldType)
Less than or equal to
In(Vec<FieldType>)
In array
Nin(Vec<FieldType>)
Not in array
Regex(String)
Regex match
Exists(bool)
Exists
Trait Implementations§
Source§impl Clone for QueryOperator
impl Clone for QueryOperator
Source§fn clone(&self) -> QueryOperator
fn clone(&self) -> QueryOperator
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 QueryOperator
impl Debug for QueryOperator
Source§impl<'de> Deserialize<'de> for QueryOperator
impl<'de> Deserialize<'de> for QueryOperator
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
Auto Trait Implementations§
impl Freeze for QueryOperator
impl RefUnwindSafe for QueryOperator
impl Send for QueryOperator
impl Sync for QueryOperator
impl Unpin for QueryOperator
impl UnwindSafe for QueryOperator
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