pub struct WhenClause {
pub kind: Kind,
pub column: Option<String>,
pub operator: Option<Operator>,
pub value: Value,
pub then: Value,
pub values: Vec<Value>,
pub raw_condition: Option<String>,
pub raw_bindings: Vec<Value>,
}Expand description
One WHEN ... THEN ... clause.
PHP: Utopia\Query\Builder\Case\WhenClause.
Fields§
§kind: KindWhat the clause tests.
column: Option<String>The column tested (not for raw clauses).
operator: Option<Operator>The comparison (comparison clauses).
value: ValueThe value compared to (comparison clauses).
then: ValueThe result when the clause matches.
values: Vec<Value>The values of an IN clause.
raw_condition: Option<String>The SQL of a raw clause.
raw_bindings: Vec<Value>The bindings of a raw clause.
Implementations§
Trait Implementations§
Source§impl Clone for WhenClause
impl Clone for WhenClause
Source§impl Debug for WhenClause
impl Debug for WhenClause
Source§impl PartialEq for WhenClause
impl PartialEq for WhenClause
impl StructuralPartialEq for WhenClause
Auto Trait Implementations§
impl !Freeze for WhenClause
impl Forget for WhenClause
impl Move for WhenClause
impl RefUnwindSafe for WhenClausewhere
Atomic<*mut ()>: RefUnwindSafe,
Atomic<usize>: RefUnwindSafe,
OnceLock<Index>: RefUnwindSafe,
Atomic<u8>: RefUnwindSafe,
impl Send for WhenClause
impl Sync for WhenClause
impl Unpin for WhenClause
impl UnsafeUnpin for WhenClausewhere
*const u8 is !null: UnsafeUnpin,
PhantomData<u8>: UnsafeUnpin,
&'static [u8]: UnsafeUnpin,
*const u8: UnsafeUnpin,
Align8<*mut ()>: UnsafeUnpin,
&'static Vtable: UnsafeUnpin,
*const ArcInner<Repr<Object>> is !null: UnsafeUnpin,
PhantomData<ArcInner<Repr<Object>>>: UnsafeUnpin,
*const Query is !null: UnsafeUnpin,
PhantomData<Query>: UnsafeUnpin,
PhantomData<Value<Object>>: UnsafeUnpin,
impl UnwindSafe for WhenClausewhere
RawVecInner: UnwindSafe,
&'static [u8]: UnwindSafe,
*const u8: UnwindSafe,
Align8<*mut ()>: UnwindSafe,
&'static Vtable: UnwindSafe,
Arc<Repr<Object>>: UnwindSafe,
BoxRaw<Query>: 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