#[non_exhaustive]pub enum ParamSource {
Restriction {
column: String,
op: RelOp,
},
Condition {
column: String,
op: RelOp,
},
Assignment {
column: String,
},
ElementKey {
column: String,
},
ElementValue {
column: String,
},
Json,
Expression,
Limit,
PerPartitionLimit,
Ttl,
Timestamp,
}Expand description
Where a bind parameter comes from.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Restriction
Compared in a WHERE clause. column is token for token relations.
Condition
Compared in an IF condition.
Assignment
Value written to a column (VALUES / SET).
ElementKey
Map key or list index of an element update, delete or restriction.
ElementValue
Value of an element update (col[?] = value).
Json
INSERT ... JSON ?
Expression
Marker inside a selection expression.
Limit
LIMIT ?
PerPartitionLimit
PER PARTITION LIMIT ?
Ttl
USING TTL ?
Timestamp
USING TIMESTAMP ?
Trait Implementations§
Source§impl Clone for ParamSource
impl Clone for ParamSource
Source§impl Debug for ParamSource
impl Debug for ParamSource
impl Eq for ParamSource
Source§impl PartialEq for ParamSource
impl PartialEq for ParamSource
impl StructuralPartialEq for ParamSource
Auto Trait Implementations§
impl Freeze for ParamSource
impl RefUnwindSafe for ParamSource
impl Send for ParamSource
impl Sync for ParamSource
impl Unpin for ParamSource
impl UnsafeUnpin for ParamSource
impl UnwindSafe for ParamSource
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