#[non_exhaustive]pub enum IntegrityConstraintViolation {
NotNullViolation,
ForeignKeyViolation,
UniqueViolation,
CheckViolation,
ExclusionViolation,
}Available on crate feature
postgres only.Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Implementations§
Trait Implementations§
Source§impl Clone for IntegrityConstraintViolation
impl Clone for IntegrityConstraintViolation
Source§fn clone(&self) -> IntegrityConstraintViolation
fn clone(&self) -> IntegrityConstraintViolation
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 IntegrityConstraintViolation
impl Debug for IntegrityConstraintViolation
Source§impl Hash for IntegrityConstraintViolation
impl Hash for IntegrityConstraintViolation
Source§impl PartialEq for IntegrityConstraintViolation
impl PartialEq for IntegrityConstraintViolation
Source§fn eq(&self, other: &IntegrityConstraintViolation) -> bool
fn eq(&self, other: &IntegrityConstraintViolation) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Eq for IntegrityConstraintViolation
impl StructuralPartialEq for IntegrityConstraintViolation
Auto Trait Implementations§
impl Freeze for IntegrityConstraintViolation
impl RefUnwindSafe for IntegrityConstraintViolation
impl Send for IntegrityConstraintViolation
impl Sync for IntegrityConstraintViolation
impl Unpin for IntegrityConstraintViolation
impl UnwindSafe for IntegrityConstraintViolation
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