pub enum ASTExpr {
And(Vec<ASTExpr>),
Or(Vec<ASTExpr>),
Not(Box<ASTExpr>),
Compare {
field: String,
op: CompareOp,
},
}Expand description
AST for query filters https://en.wikipedia.org/wiki/Abstract_syntax_tree
Variants§
And(Vec<ASTExpr>)
Logical AND: all sub-expressions must be true
Or(Vec<ASTExpr>)
Logical OR: at least one sub-expression must be true
Not(Box<ASTExpr>)
Logical NOT: negates the sub-expression
Compare
Comparison on a field (supports dot notation)
Implementations§
Trait Implementations§
impl StructuralPartialEq for ASTExpr
Auto Trait Implementations§
impl Freeze for ASTExpr
impl RefUnwindSafe for ASTExpr
impl Send for ASTExpr
impl Sync for ASTExpr
impl Unpin for ASTExpr
impl UnwindSafe for ASTExpr
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