pub enum ConstraintViolation {
NotNull {
column: String,
},
PrimaryKey {
columns: Vec<String>,
value: Option<String>,
},
Unique {
index_name: String,
columns: Vec<String>,
value: Option<String>,
},
}Expand description
Constraint violation details.
Variants§
NotNull
NOT NULL constraint violated.
PrimaryKey
PRIMARY KEY constraint violated.
Unique
UNIQUE constraint violated.
Trait Implementations§
Source§impl Clone for ConstraintViolation
impl Clone for ConstraintViolation
Source§fn clone(&self) -> ConstraintViolation
fn clone(&self) -> ConstraintViolation
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 ConstraintViolation
impl Debug for ConstraintViolation
Source§impl Display for ConstraintViolation
impl Display for ConstraintViolation
Source§impl Error for ConstraintViolation
impl Error for ConstraintViolation
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
Source§impl From<ConstraintViolation> for ExecutorError
impl From<ConstraintViolation> for ExecutorError
Source§fn from(source: ConstraintViolation) -> Self
fn from(source: ConstraintViolation) -> Self
Converts to this type from the input type.
Source§impl PartialEq for ConstraintViolation
impl PartialEq for ConstraintViolation
impl Eq for ConstraintViolation
impl StructuralPartialEq for ConstraintViolation
Auto Trait Implementations§
impl Freeze for ConstraintViolation
impl RefUnwindSafe for ConstraintViolation
impl Send for ConstraintViolation
impl Sync for ConstraintViolation
impl Unpin for ConstraintViolation
impl UnwindSafe for ConstraintViolation
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