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