Enum query_structure::filter::ScalarCondition
source · pub enum ScalarCondition {
Show 18 variants
Equals(ConditionValue),
NotEquals(ConditionValue),
Contains(ConditionValue),
NotContains(ConditionValue),
StartsWith(ConditionValue),
NotStartsWith(ConditionValue),
EndsWith(ConditionValue),
NotEndsWith(ConditionValue),
LessThan(ConditionValue),
LessThanOrEquals(ConditionValue),
GreaterThan(ConditionValue),
GreaterThanOrEquals(ConditionValue),
In(ConditionListValue),
NotIn(ConditionListValue),
JsonCompare(JsonCondition),
Search(ConditionValue, Vec<ScalarProjection>),
NotSearch(ConditionValue, Vec<ScalarProjection>),
IsSet(bool),
}
Variants§
Equals(ConditionValue)
NotEquals(ConditionValue)
Contains(ConditionValue)
NotContains(ConditionValue)
StartsWith(ConditionValue)
NotStartsWith(ConditionValue)
EndsWith(ConditionValue)
NotEndsWith(ConditionValue)
LessThan(ConditionValue)
LessThanOrEquals(ConditionValue)
GreaterThan(ConditionValue)
GreaterThanOrEquals(ConditionValue)
In(ConditionListValue)
NotIn(ConditionListValue)
JsonCompare(JsonCondition)
Search(ConditionValue, Vec<ScalarProjection>)
NotSearch(ConditionValue, Vec<ScalarProjection>)
IsSet(bool)
Implementations§
source§impl ScalarCondition
impl ScalarCondition
pub fn invert(self, condition: bool) -> Self
pub fn as_field_ref(&self) -> Option<&ScalarFieldRef>
Trait Implementations§
source§impl Clone for ScalarCondition
impl Clone for ScalarCondition
source§fn clone(&self) -> ScalarCondition
fn clone(&self) -> ScalarCondition
Returns a copy 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 ScalarCondition
impl Debug for ScalarCondition
source§impl Hash for ScalarCondition
impl Hash for ScalarCondition
source§impl PartialEq for ScalarCondition
impl PartialEq for ScalarCondition
source§fn eq(&self, other: &ScalarCondition) -> bool
fn eq(&self, other: &ScalarCondition) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Eq for ScalarCondition
impl StructuralEq for ScalarCondition
impl StructuralPartialEq for ScalarCondition
Auto Trait Implementations§
impl !RefUnwindSafe for ScalarCondition
impl Send for ScalarCondition
impl Sync for ScalarCondition
impl Unpin for ScalarCondition
impl !UnwindSafe for ScalarCondition
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 Twhere
T: Hash + ?Sized,
impl<T> CallHasher for Twhere T: Hash + ?Sized,
source§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.source§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.