pub enum ConflictTarget {
Columns {
columns: Vec<String>,
where_clause: Option<Conditions>,
},
Constraint(String),
}Expand description
What triggers the conflict.
Variants§
Columns
ON CONFLICT (col1, col2, …) [WHERE …]
Constraint(String)
ON CONSTRAINT constraint_name (PG only).
Trait Implementations§
Source§impl Clone for ConflictTarget
impl Clone for ConflictTarget
Source§fn clone(&self) -> ConflictTarget
fn clone(&self) -> ConflictTarget
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 moreAuto Trait Implementations§
impl Freeze for ConflictTarget
impl !RefUnwindSafe for ConflictTarget
impl Send for ConflictTarget
impl Sync for ConflictTarget
impl Unpin for ConflictTarget
impl UnsafeUnpin for ConflictTarget
impl !UnwindSafe for ConflictTarget
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