pub struct ForeignKeyMetadata {
pub name: String,
pub columns: Vec<String>,
pub referenced_table: String,
pub referenced_columns: Vec<String>,
pub on_delete: String,
pub on_update: String,
}Expand description
Foreign key metadata.
Fields§
§name: StringConstraint name.
columns: Vec<String>Columns in this table.
referenced_table: StringReferenced table.
referenced_columns: Vec<String>Referenced columns.
on_delete: StringOn delete action.
on_update: StringOn update action.
Trait Implementations§
Source§impl Clone for ForeignKeyMetadata
impl Clone for ForeignKeyMetadata
Auto Trait Implementations§
impl Forget for ForeignKeyMetadata
impl Freeze for ForeignKeyMetadata
impl Move for ForeignKeyMetadata
impl RefUnwindSafe for ForeignKeyMetadata
impl Send for ForeignKeyMetadata
impl Sync for ForeignKeyMetadata
impl Unpin for ForeignKeyMetadata
impl UnsafeUnpin for ForeignKeyMetadata
impl UnwindSafe for ForeignKeyMetadata
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