pub enum Predicate {
Show 15 variants
True,
False,
And(Vec<Self>),
Or(Vec<Self>),
Not(Box<Self>),
Compare(ComparePredicate),
IsNull {
field: String,
},
IsMissing {
field: String,
},
IsEmpty {
field: String,
},
IsNotEmpty {
field: String,
},
MapContainsKey {
field: String,
key: Value,
coercion: CoercionSpec,
},
MapContainsValue {
field: String,
value: Value,
coercion: CoercionSpec,
},
MapContainsEntry {
field: String,
key: Value,
value: Value,
coercion: CoercionSpec,
},
TextContains {
field: String,
value: Value,
},
TextContainsCi {
field: String,
value: Value,
},
}Expand description
Predicate
Variants§
True
False
And(Vec<Self>)
Or(Vec<Self>)
Not(Box<Self>)
Compare(ComparePredicate)
IsNull
IsMissing
IsEmpty
IsNotEmpty
MapContainsKey
MapContainsValue
MapContainsEntry
TextContains
TextContainsCi
Implementations§
Source§impl Predicate
impl Predicate
pub const fn and(preds: Vec<Self>) -> Self
pub const fn or(preds: Vec<Self>) -> Self
pub fn not(pred: Self) -> Self
pub fn eq(field: String, value: Value) -> Self
pub fn ne(field: String, value: Value) -> Self
pub fn lt(field: String, value: Value) -> Self
pub fn lte(field: String, value: Value) -> Self
pub fn gt(field: String, value: Value) -> Self
pub fn gte(field: String, value: Value) -> Self
pub fn in_(field: String, values: Vec<Value>) -> Self
pub fn not_in(field: String, values: Vec<Value>) -> Self
Trait Implementations§
impl Eq for Predicate
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