pub enum UpsertExpr {
Value(Value),
Excluded(String),
}Expand description
Expression permitted on the RHS of SET col = <expr> inside
ON CONFLICT ... DO UPDATE.
Intentionally restricted: callers either want a literal value or an
EXCLUDED.col back-reference. Arbitrary scalar expressions would
punch through the kernel’s determinism boundary and are out of scope
for v0.6.0.
Variants§
Value(Value)
A plain literal or parameter placeholder.
Excluded(String)
EXCLUDED.<col> — pick the value from the would-be-inserted row.
Trait Implementations§
Source§impl Clone for UpsertExpr
impl Clone for UpsertExpr
Source§fn clone(&self) -> UpsertExpr
fn clone(&self) -> UpsertExpr
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for UpsertExpr
impl Debug for UpsertExpr
Source§impl PartialEq for UpsertExpr
impl PartialEq for UpsertExpr
impl Eq for UpsertExpr
impl StructuralPartialEq for UpsertExpr
Auto Trait Implementations§
impl !Freeze for UpsertExpr
impl RefUnwindSafe for UpsertExpr
impl Send for UpsertExpr
impl Sync for UpsertExpr
impl Unpin for UpsertExpr
impl UnsafeUnpin for UpsertExpr
impl UnwindSafe for UpsertExpr
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