Struct sea_schema::mysql::def::ForeignKeyInfo [−][src]
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,
}
This is supported 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
This is supported on crate feature
writer
only.Trait Implementations
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
This method tests for !=
.
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
Mutably borrows from an owned value. Read more