pub struct ForeignKeyInfo {
pub name: String,
pub columns: Vec<String>,
pub referenced_table: String,
pub referenced_columns: Vec<String>,
pub on_update: ForeignKeyAction,
pub on_delete: ForeignKeyAction,
}
Available on crate features
mysql
and def
only.Fieldsยง
ยงname: String
The name of the foreign key
columns: Vec<String>
The columns composing this foreign key
referenced_table: String
Referenced table name
referenced_columns: Vec<String>
The columns composing the index of the referenced table
on_update: ForeignKeyAction
Action on update
on_delete: ForeignKeyAction
Action on delete
Implementationsยง
Sourceยงimpl ForeignKeyInfo
impl ForeignKeyInfo
pub fn write(&self) -> ForeignKeyCreateStatement
Available on crate feature
writer
only.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 ยท 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 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