pub enum Expr {
Eq(String, ExprValue),
Neq(String, ExprValue),
Gt(String, f64),
Gte(String, f64),
Lt(String, f64),
Lte(String, f64),
Contains(String, ExprValue),
In(String, Vec<ExprValue>),
Exists(String),
Not(Box<Expr>),
And(Box<Expr>, Box<Expr>),
Or(Box<Expr>, Box<Expr>),
}Expand description
Parsed WHERE clause expression AST.
Variants§
Eq(String, ExprValue)
Equality comparison: field = value.
Neq(String, ExprValue)
Inequality comparison: field != value.
Gt(String, f64)
Greater-than comparison: field > number.
Gte(String, f64)
Greater-than-or-equal comparison: field >= number.
Lt(String, f64)
Less-than comparison: field < number.
Lte(String, f64)
Less-than-or-equal comparison: field <= number.
Contains(String, ExprValue)
Array membership test: field CONTAINS value.
In(String, Vec<ExprValue>)
Set membership test: field IN (value1, value2, ...).
Exists(String)
Field existence test: field EXISTS.
Not(Box<Expr>)
Logical NOT of an expression.
And(Box<Expr>, Box<Expr>)
Logical AND of two expressions.
Or(Box<Expr>, Box<Expr>)
Logical OR of two expressions.
Trait Implementations§
impl StructuralPartialEq for Expr
Auto Trait Implementations§
impl Freeze for Expr
impl RefUnwindSafe for Expr
impl Send for Expr
impl Sync for Expr
impl Unpin for Expr
impl UnsafeUnpin for Expr
impl UnwindSafe for Expr
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