pub struct FkDef {
pub child_columns: Vec<usize>,
pub owner_column: Option<String>,
pub parent_table: String,
pub parent_columns: Vec<String>,
pub on_delete: FkActionType,
pub on_update: FkActionType,
pub deferred: bool,
}Expand description
A foreign key constraint definition stored on the child table.
Fields§
§child_columns: Vec<usize>Column indices in the child table that form the FK.
owner_column: Option<String>Owning column for a column-level REFERENCES clause; None for a
table-level FOREIGN KEY constraint.
parent_table: StringReferenced (parent) table name.
parent_columns: Vec<String>Referenced column names in the parent table. Empty means the parent’s implicit rowid.
on_delete: FkActionTypeAction on parent row deletion.
on_update: FkActionTypeAction on parent row update.
deferred: booltrue for DEFERRABLE INITIALLY DEFERRED constraints, whose
parent-existence check is deferred to COMMIT rather than checked at the
statement (bd-do0d6).
Trait Implementations§
impl Eq for FkDef
impl StructuralPartialEq for FkDef
Auto Trait Implementations§
impl Freeze for FkDef
impl RefUnwindSafe for FkDef
impl Send for FkDef
impl Sync for FkDef
impl Unpin for FkDef
impl UnsafeUnpin for FkDef
impl UnwindSafe for FkDef
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
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
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, _span: NoopSpan) -> Self
fn instrument(self, _span: NoopSpan) -> Self
Instruments this future with a span (no-op when disabled).
Source§fn in_current_span(self) -> Self
fn in_current_span(self) -> Self
Instruments this future with the current span (no-op when disabled).