pub struct Conflict {
pub expression: Option<Expr>,
}Expand description
The slot an INSERT keeps for its conflict handling.
It holds an erased expression rather than a ConflictClause because the three
dialects do not spell this the same way: PostgreSQL and SQLite have
ON CONFLICT, MySQL has ON DUPLICATE KEY UPDATE and SQLite also has
INSERT OR REPLACE. Each dialect puts its own expression here — usually a
ConflictClause, reaching core through
Expr::Custom.
Fields§
§expression: Option<Expr>The whole conflict clause, whatever this dialect’s shape for one is.
Implementations§
Trait Implementations§
Source§impl Expression for Conflict
impl Expression for Conflict
Source§impl HasConflict for Conflict
impl HasConflict for Conflict
Source§fn conflict_mut(&mut self) -> &mut Conflict
fn conflict_mut(&mut self) -> &mut Conflict
The conflict slot to modify.
Auto Trait Implementations§
impl !RefUnwindSafe for Conflict
impl !UnwindSafe for Conflict
impl Freeze for Conflict
impl Send for Conflict
impl Sync for Conflict
impl Unpin for Conflict
impl UnsafeUnpin for Conflict
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