pub enum FilterExpr {
Show 13 variants
Eq {
field: String,
value: DbValue,
},
Ne {
field: String,
value: DbValue,
},
Lt {
field: String,
value: DbValue,
},
Le {
field: String,
value: DbValue,
},
Gt {
field: String,
value: DbValue,
},
Ge {
field: String,
value: DbValue,
},
In {
field: String,
values: Vec<DbValue>,
},
Contains {
field: String,
value: String,
},
IsNull {
field: String,
},
IsNotNull {
field: String,
},
And(Box<FilterExpr>, Box<FilterExpr>),
Or(Box<FilterExpr>, Box<FilterExpr>),
Not(Box<FilterExpr>),
}Expand description
过滤表达式 AST
Variants§
Eq
Ne
Lt
Le
Gt
Ge
In
Contains
IsNull
IsNotNull
And(Box<FilterExpr>, Box<FilterExpr>)
Or(Box<FilterExpr>, Box<FilterExpr>)
Not(Box<FilterExpr>)
Trait Implementations§
Source§impl Clone for FilterExpr
impl Clone for FilterExpr
Source§fn clone(&self) -> FilterExpr
fn clone(&self) -> FilterExpr
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for FilterExpr
impl RefUnwindSafe for FilterExpr
impl Send for FilterExpr
impl Sync for FilterExpr
impl Unpin for FilterExpr
impl UnsafeUnpin for FilterExpr
impl UnwindSafe for FilterExpr
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