pub struct OnConflictClause {
pub target_columns: Vec<String>,
pub action: OnConflictAction,
}Expand description
v7.9.7 — INSERT upsert clause: ON CONFLICT (target) DO action.
Fields§
§target_columns: Vec<String>Local columns that identify the conflict (must match a
UNIQUE / PRIMARY KEY index on the target table). Empty
list means the user wrote ON CONFLICT DO … without a
target — engine picks the table’s first BTree index by
convention.
action: OnConflictActionThe action on conflict.
Trait Implementations§
Source§impl Clone for OnConflictClause
impl Clone for OnConflictClause
Source§fn clone(&self) -> OnConflictClause
fn clone(&self) -> OnConflictClause
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 OnConflictClause
impl Debug for OnConflictClause
Source§impl PartialEq for OnConflictClause
impl PartialEq for OnConflictClause
Source§fn eq(&self, other: &OnConflictClause) -> bool
fn eq(&self, other: &OnConflictClause) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for OnConflictClause
Auto Trait Implementations§
impl Freeze for OnConflictClause
impl RefUnwindSafe for OnConflictClause
impl Send for OnConflictClause
impl Sync for OnConflictClause
impl Unpin for OnConflictClause
impl UnsafeUnpin for OnConflictClause
impl UnwindSafe for OnConflictClause
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