pub enum Predicate {
Eq(ColumnName, PredicateValue),
Lt(ColumnName, PredicateValue),
Le(ColumnName, PredicateValue),
Gt(ColumnName, PredicateValue),
Ge(ColumnName, PredicateValue),
In(ColumnName, Vec<PredicateValue>),
Like(ColumnName, String),
IsNull(ColumnName),
IsNotNull(ColumnName),
Or(Vec<Predicate>, Vec<Predicate>),
}Expand description
A comparison predicate from the WHERE clause.
Variants§
Eq(ColumnName, PredicateValue)
column = value or column = $N
Lt(ColumnName, PredicateValue)
column < value
Le(ColumnName, PredicateValue)
column <= value
Gt(ColumnName, PredicateValue)
column > value
Ge(ColumnName, PredicateValue)
column >= value
In(ColumnName, Vec<PredicateValue>)
column IN (value, value, …)
Like(ColumnName, String)
column LIKE ‘pattern’
IsNull(ColumnName)
column IS NULL
IsNotNull(ColumnName)
column IS NOT NULL
Or(Vec<Predicate>, Vec<Predicate>)
OR of multiple predicates
Implementations§
Trait Implementations§
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