pub struct UpsertExpr {
pub target: String,
pub key_column: String,
pub assignments: Vec<Assignment>,
pub on_conflict: Vec<Assignment>,
}Expand description
upsert User on .id { id := 1, name := "Alice" } [on conflict { name := "Alice" }]
Fields§
§target: String§key_column: String§assignments: Vec<Assignment>§on_conflict: Vec<Assignment>Assignments to apply on conflict. If empty, all non-key assignments
from assignments are used as the update set.
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 (const: unstable) · 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
Source§fn eq(&self, other: &UpsertExpr) -> bool
fn eq(&self, other: &UpsertExpr) -> bool
Tests for
self and other values to be equal, and is used by ==.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