pub struct CaseWhen {
pub condition: Box<Expression>,
pub result: Box<Expression>,
}Expand description
One WHEN condition THEN result of a CASE.
PHP: Utopia\Query\AST\Expression\CaseWhen (condition, result).
Fields§
§condition: Box<Expression>The WHEN condition (or value, for a CASE with an operand).
result: Box<Expression>The THEN result.
Implementations§
Source§impl CaseWhen
impl CaseWhen
Sourcepub fn new(
condition: impl Into<Expression>,
result: impl Into<Expression>,
) -> Self
pub fn new( condition: impl Into<Expression>, result: impl Into<Expression>, ) -> Self
WHEN condition THEN result.
PHP: new CaseWhen($condition, $result).
Trait Implementations§
Source§impl From<CaseWhen> for Expression
impl From<CaseWhen> for Expression
impl StructuralPartialEq for CaseWhen
Auto Trait Implementations§
impl Forget for CaseWhen
impl Freeze for CaseWhen
impl Move for CaseWhen
impl RefUnwindSafe for CaseWhenwhere
Atomic<*mut ()>: RefUnwindSafe,
Atomic<usize>: RefUnwindSafe,
OnceLock<Index>: RefUnwindSafe,
Atomic<u8>: RefUnwindSafe,
impl Send for CaseWhenwhere
BoxRaw<Expression>: Send,
impl Sync for CaseWhenwhere
BoxRaw<Expression>: Sync,
impl Unpin for CaseWhen
impl UnsafeUnpin for CaseWhen
impl UnwindSafe for CaseWhenwhere
BoxRaw<Expression>: UnwindSafe,
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