pub enum Condition {
And(Box<Condition>, Box<Condition>),
Or(Box<Condition>, Box<Condition>),
Not(Box<Condition>),
Compare {
operand: Operand,
op: CompareOp,
value: ValueExpr,
},
In {
operand: Operand,
values: Vec<ValueExpr>,
negated: bool,
},
Like {
operand: Operand,
pattern: ValueExpr,
negated: bool,
},
IsNull {
operand: Operand,
negated: bool,
},
}Expand description
A boolean condition of a WHERE or HAVING clause.
Variants§
And(Box<Condition>, Box<Condition>)
left AND right
Or(Box<Condition>, Box<Condition>)
left OR right
Not(Box<Condition>)
NOT inner
Compare
operand op value
In
operand [NOT] IN (values)
Like
operand [NOT] LIKE pattern
IsNull
operand IS [NOT] NULL
Trait Implementations§
impl Eq for Condition
impl StructuralPartialEq for Condition
Auto Trait Implementations§
impl Freeze for Condition
impl RefUnwindSafe for Condition
impl Send for Condition
impl Sync for Condition
impl Unpin for Condition
impl UnsafeUnpin for Condition
impl UnwindSafe for Condition
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