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
Source§fn clone(&self) -> ForeignKeyMetadata
fn clone(&self) -> ForeignKeyMetadata
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 moreAuto Trait Implementations§
impl Freeze for ForeignKeyMetadata
impl RefUnwindSafe for ForeignKeyMetadata
impl Send for ForeignKeyMetadata
impl Sync for ForeignKeyMetadata
impl Unpin 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