pub enum Filter {
Simple {
column: String,
operator: FilterOperator,
value: String,
},
And(Vec<Filter>),
Or(Vec<Filter>),
Not(Box<Filter>),
}
Expand description
Database filter for WHERE clauses
Variants§
Simple
Simple column filter
And(Vec<Filter>)
Logical AND group
Or(Vec<Filter>)
Logical OR group
Not(Box<Filter>)
Logical NOT filter
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Filter
impl RefUnwindSafe for Filter
impl Send for Filter
impl Sync for Filter
impl Unpin for Filter
impl UnwindSafe for Filter
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