pub struct ForeignKeyConstraint {
pub column_index: usize,
pub column_name: String,
pub referenced_table: String,
pub referenced_column: String,
pub on_delete: ForeignKeyAction,
pub on_update: ForeignKeyAction,
}Expand description
Foreign key constraint metadata
Fields§
§column_index: usizeIndex of the FK column in this table’s schema
column_name: StringFK column name (for error messages)
referenced_table: StringReferenced parent table name (lowercase)
referenced_column: StringReferenced parent column name (lowercase)
on_delete: ForeignKeyActionAction when parent row is deleted
on_update: ForeignKeyActionAction when parent PK is updated
Trait Implementations§
Source§impl Clone for ForeignKeyConstraint
impl Clone for ForeignKeyConstraint
Source§fn clone(&self) -> ForeignKeyConstraint
fn clone(&self) -> ForeignKeyConstraint
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 ForeignKeyConstraint
impl Debug for ForeignKeyConstraint
impl Eq for ForeignKeyConstraint
Source§impl PartialEq for ForeignKeyConstraint
impl PartialEq for ForeignKeyConstraint
impl StructuralPartialEq for ForeignKeyConstraint
Auto Trait Implementations§
impl Freeze for ForeignKeyConstraint
impl RefUnwindSafe for ForeignKeyConstraint
impl Send for ForeignKeyConstraint
impl Sync for ForeignKeyConstraint
impl Unpin for ForeignKeyConstraint
impl UnsafeUnpin for ForeignKeyConstraint
impl UnwindSafe for ForeignKeyConstraint
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