pub struct Case {
pub arg: Option<Box<Expr>>,
pub whens: Vec<(Expr, Expr)>,
pub default: Box<Expr>,
}Expand description
A CASE expression.
Fields§
§arg: Option<Box<Expr>>The value that the conditions compare, for CASE x WHEN ....
whens: Vec<(Expr, Expr)>Each condition with its result.
default: Box<Expr>The result of ELSE, which is a null constant when the query has no ELSE.
Trait Implementations§
impl StructuralPartialEq for Case
Auto Trait Implementations§
impl Freeze for Case
impl RefUnwindSafe for Case
impl Send for Case
impl Sync for Case
impl Unpin for Case
impl UnsafeUnpin for Case
impl UnwindSafe for Case
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