pub enum Expr {
Identifier(String),
Literal(Literal),
BinaryOp {
left: Box<Expr>,
op: BinaryOperator,
right: Box<Expr>,
},
IsNull {
expr: Box<Expr>,
negated: bool,
},
UnaryOp {
op: UnaryOperator,
expr: Box<Expr>,
},
FunctionCall {
name: String,
args: Vec<Expr>,
},
WindowFunction {
function: Box<Expr>,
spec: WindowSpec,
},
Subquery(Box<SelectStatement>),
Exists(Box<SelectStatement>),
InSubquery {
expr: Box<Expr>,
subquery: Box<SelectStatement>,
},
Case {
operand: Option<Box<Expr>>,
when_then: Vec<(Expr, Expr)>,
else_expr: Option<Box<Expr>>,
},
Wildcard,
}Variants§
Identifier(String)
Literal(Literal)
BinaryOp
IsNull
UnaryOp
FunctionCall
WindowFunction
Subquery(Box<SelectStatement>)
Exists(Box<SelectStatement>)
InSubquery
Case
Wildcard
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Expr
impl RefUnwindSafe for Expr
impl Send for Expr
impl Sync for Expr
impl Unpin for Expr
impl UnwindSafe for Expr
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