pub enum ConstraintViolationType {
Unique,
ForeignKey,
NotFound,
Other(String),
}Expand description
The type of constraint violation that caused the error
This is the type of constraint on the database’s definition that is violated. For example, if an operation tries to insert an entry that would cause a duplicate in a unique column, the ConstraintViolationType::Unique should be used.
Variants§
Trait Implementations§
Source§impl Debug for ConstraintViolationType
impl Debug for ConstraintViolationType
Source§impl Display for ConstraintViolationType
impl Display for ConstraintViolationType
Source§impl PartialEq for ConstraintViolationType
impl PartialEq for ConstraintViolationType
impl Eq for ConstraintViolationType
impl StructuralPartialEq for ConstraintViolationType
Auto Trait Implementations§
impl Freeze for ConstraintViolationType
impl RefUnwindSafe for ConstraintViolationType
impl Send for ConstraintViolationType
impl Sync for ConstraintViolationType
impl Unpin for ConstraintViolationType
impl UnwindSafe for ConstraintViolationType
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