pub enum FilterNode {
Compare {
column: String,
op: FilterOp,
value: FilterLiteral,
},
And(Box<FilterNode>, Box<FilterNode>),
Or(Box<FilterNode>, Box<FilterNode>),
Not(Box<FilterNode>),
}Expand description
Filter expression tree for SQL pushdown.
Built from comparisons and logical operations. Represents typed column-vs-literal predicates suitable for pushdown to a SQL backend.
Variants§
Compare
Column compared to a literal value.
And(Box<FilterNode>, Box<FilterNode>)
Logical AND of two filter nodes.
Or(Box<FilterNode>, Box<FilterNode>)
Logical OR of two filter nodes.
Not(Box<FilterNode>)
Logical NOT of a filter node.
Trait Implementations§
Source§impl Clone for FilterNode
impl Clone for FilterNode
Source§fn clone(&self) -> FilterNode
fn clone(&self) -> FilterNode
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for FilterNode
impl Debug for FilterNode
Source§impl PartialEq for FilterNode
impl PartialEq for FilterNode
Source§fn eq(&self, other: &FilterNode) -> bool
fn eq(&self, other: &FilterNode) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for FilterNode
Auto Trait Implementations§
impl Freeze for FilterNode
impl RefUnwindSafe for FilterNode
impl Send for FilterNode
impl Sync for FilterNode
impl Unpin for FilterNode
impl UnsafeUnpin for FilterNode
impl UnwindSafe for FilterNode
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