pub enum Predicate {
Compare {
field: FieldPath,
op: CompareOp,
value: PredicateValue,
},
And(Vec<Predicate>),
Or(Vec<Predicate>),
Not(Box<Predicate>),
Exists {
field: FieldPath,
},
}Expand description
Predicate for filtering entities
Variants§
Compare
Field comparison: field op value
And(Vec<Predicate>)
Logical AND of predicates
Or(Vec<Predicate>)
Logical OR of predicates
Not(Box<Predicate>)
Negation
Exists
Field exists (is not null)
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Predicate
impl<'de> Deserialize<'de> for Predicate
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 StructuralPartialEq for Predicate
Auto Trait Implementations§
impl Freeze for Predicate
impl RefUnwindSafe for Predicate
impl Send for Predicate
impl Sync for Predicate
impl Unpin for Predicate
impl UnwindSafe for Predicate
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