pub struct CaseExpr {
pub subject: Option<Box<Expression>>,
pub alternatives: Vec<CaseAlternative>,
pub else_expr: Option<Box<Expression>>,
}Expand description
A CASE expression (simple or searched).
Fields§
§subject: Option<Box<Expression>>Optional subject expression for simple CASE: CASE x WHEN v THEN ...
alternatives: Vec<CaseAlternative>The WHEN/THEN branches.
else_expr: Option<Box<Expression>>Optional ELSE expression returned when no branch matches.
Trait Implementations§
impl StructuralPartialEq for CaseExpr
Auto Trait Implementations§
impl Freeze for CaseExpr
impl RefUnwindSafe for CaseExpr
impl Send for CaseExpr
impl Sync for CaseExpr
impl Unpin for CaseExpr
impl UnsafeUnpin for CaseExpr
impl UnwindSafe for CaseExpr
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