Struct ForeignKeyInfo
pub struct ForeignKeyInfo {
pub name: String,
pub columns: Vec<String>,
pub referenced_table: String,
pub referenced_columns: Vec<String>,
pub on_delete: ForeignKeyAction,
pub on_update: ForeignKeyAction,
}Fields§
§name: StringThe name of the foreign key
columns: Vec<String>The columns composing this foreign key
referenced_table: StringReferenced table name
referenced_columns: Vec<String>The columns composing the index of the referenced table
on_delete: ForeignKeyActionDelete rule
on_update: ForeignKeyActionUpdate rule
Implementations§
§impl ForeignKeyInfo
impl ForeignKeyInfo
pub fn write(&self) -> ForeignKeyCreateStatement
Trait Implementations§
§impl Clone for ForeignKeyInfo
impl Clone for ForeignKeyInfo
§fn clone(&self) -> ForeignKeyInfo
fn clone(&self) -> ForeignKeyInfo
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 ForeignKeyInfo
impl Debug for ForeignKeyInfo
§impl PartialEq for ForeignKeyInfo
impl PartialEq for ForeignKeyInfo
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 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