Struct ForeignKeyViolation
pub struct ForeignKeyViolation {
pub table: String,
pub rowid: Option<i64>,
pub parent: String,
pub fk_id: i64,
}Expand description
One row of PRAGMA foreign_key_check: a child row whose declared reference has no
parent.
Fields§
§table: StringThe child table holding the violating row.
rowid: Option<i64>The child row’s rowid, or None for a WITHOUT ROWID table.
parent: StringThe parent table the reference names.
fk_id: i64Index of the failing constraint in the child’s PRAGMA foreign_key_list.
Trait Implementations§
§impl Clone for ForeignKeyViolation
impl Clone for ForeignKeyViolation
§fn clone(&self) -> ForeignKeyViolation
fn clone(&self) -> ForeignKeyViolation
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 more§impl Debug for ForeignKeyViolation
impl Debug for ForeignKeyViolation
§impl PartialEq for ForeignKeyViolation
impl PartialEq for ForeignKeyViolation
impl Eq for ForeignKeyViolation
impl StructuralPartialEq for ForeignKeyViolation
Auto Trait Implementations§
impl Freeze for ForeignKeyViolation
impl RefUnwindSafe for ForeignKeyViolation
impl Send for ForeignKeyViolation
impl Sync for ForeignKeyViolation
impl Unpin for ForeignKeyViolation
impl UnsafeUnpin for ForeignKeyViolation
impl UnwindSafe for ForeignKeyViolation
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.