pub enum ConflictType {
Data,
NotFound,
Conflict,
Constraint,
ForeignKey,
}Expand description
The category of conflict encountered while applying a changeset.
Variants§
Data
The row exists but its current values differ from the expected old values.
NotFound
The row to update or delete does not exist in the target database.
Conflict
A unique-constraint violation occurred (e.g. duplicate key on INSERT).
Constraint
A non-unique constraint violation occurred (CHECK, NOT NULL, etc.).
ForeignKey
A foreign-key constraint violation occurred.
Trait Implementations§
Source§impl Clone for ConflictType
impl Clone for ConflictType
Source§fn clone(&self) -> ConflictType
fn clone(&self) -> ConflictType
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 ConflictType
impl Debug for ConflictType
Source§impl PartialEq for ConflictType
impl PartialEq for ConflictType
impl Copy for ConflictType
impl Eq for ConflictType
impl StructuralPartialEq for ConflictType
Auto Trait Implementations§
impl Freeze for ConflictType
impl RefUnwindSafe for ConflictType
impl Send for ConflictType
impl Sync for ConflictType
impl Unpin for ConflictType
impl UnsafeUnpin for ConflictType
impl UnwindSafe for ConflictType
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