pub struct ForeignKeyViolation {
pub table: String,
pub rowid: Option<i64>,
pub parent: String,
pub constraint: i64,
}Expand description
One row of PRAGMA foreign_key_check (ModelContainer::foreign_key_check): a child
row whose reference names no parent.
Fields§
§table: StringThe child table.
rowid: Option<i64>The child row’s rowid; None for a WITHOUT ROWID table.
parent: StringThe parent table the reference names.
constraint: i64The constraint’s index in the child’s PRAGMA foreign_key_list.
Trait Implementations§
Source§impl Clone for ForeignKeyViolation
impl Clone for ForeignKeyViolation
Source§impl Debug for ForeignKeyViolation
impl Debug for ForeignKeyViolation
Source§impl Display for ForeignKeyViolation
impl Display for ForeignKeyViolation
impl Eq for ForeignKeyViolation
Source§impl PartialEq for ForeignKeyViolation
impl PartialEq for ForeignKeyViolation
impl StructuralPartialEq for ForeignKeyViolation
Auto Trait Implementations§
impl Forget for ForeignKeyViolation
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,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
impl<T> ErasedDestructor for Twhere
T: 'static,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more