Struct sea_schema::mysql::def::ForeignKeyInfo
source · [−]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
sourceimpl ForeignKeyInfo
impl ForeignKeyInfo
pub fn write(&self) -> ForeignKeyCreateStatement
Available on crate feature
writer
only.Trait Implementations
sourceimpl Clone for ForeignKeyInfo
impl Clone for ForeignKeyInfo
sourcefn clone(&self) -> ForeignKeyInfo
fn clone(&self) -> ForeignKeyInfo
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for ForeignKeyInfo
impl Debug for ForeignKeyInfo
sourceimpl PartialEq<ForeignKeyInfo> for ForeignKeyInfo
impl PartialEq<ForeignKeyInfo> for ForeignKeyInfo
sourcefn eq(&self, other: &ForeignKeyInfo) -> bool
fn eq(&self, other: &ForeignKeyInfo) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourcefn ne(&self, other: &ForeignKeyInfo) -> bool
fn ne(&self, other: &ForeignKeyInfo) -> bool
This method tests for !=
.
impl StructuralPartialEq for ForeignKeyInfo
Auto Trait Implementations
impl RefUnwindSafe for ForeignKeyInfo
impl Send for ForeignKeyInfo
impl Sync for ForeignKeyInfo
impl Unpin for ForeignKeyInfo
impl UnwindSafe for ForeignKeyInfo
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more