pub struct ForeignKeyInfo {
pub constraint_name: String,
pub column: String,
pub foreign_table: String,
pub foreign_column: String,
pub on_update: Option<String>,
pub on_delete: Option<String>,
}Expand description
A foreign key constraint.
Fields§
§constraint_name: StringThe constraint name.
column: StringThe column on the referencing (child) table.
foreign_table: StringThe referenced (parent) table name.
foreign_column: StringThe referenced column in the parent table.
on_update: Option<String>Referential action on UPDATE of parent row (CASCADE, SET NULL, etc.).
None when the backend does not surface this information.
on_delete: Option<String>Referential action on DELETE of parent row.
None when the backend does not surface this information.
Trait Implementations§
Source§impl Clone for ForeignKeyInfo
impl Clone for ForeignKeyInfo
Source§fn clone(&self) -> ForeignKeyInfo
fn clone(&self) -> ForeignKeyInfo
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 ForeignKeyInfo
impl Debug for ForeignKeyInfo
Source§impl Default for ForeignKeyInfo
impl Default for ForeignKeyInfo
Source§fn default() -> ForeignKeyInfo
fn default() -> ForeignKeyInfo
Returns the “default value” for a type. Read more
impl Eq for ForeignKeyInfo
Source§impl PartialEq for ForeignKeyInfo
impl PartialEq for ForeignKeyInfo
Source§fn eq(&self, other: &ForeignKeyInfo) -> bool
fn eq(&self, other: &ForeignKeyInfo) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for ForeignKeyInfo
Auto Trait Implementations§
impl Freeze for ForeignKeyInfo
impl RefUnwindSafe for ForeignKeyInfo
impl Send for ForeignKeyInfo
impl Sync for ForeignKeyInfo
impl Unpin for ForeignKeyInfo
impl UnsafeUnpin for ForeignKeyInfo
impl UnwindSafe for ForeignKeyInfo
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