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 WhenClause
impl Send for WhenClause
impl Sync for WhenClause
impl Unpin for WhenClause
impl UnsafeUnpin for WhenClause
impl UnwindSafe for WhenClause
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