pub struct ForeignKeyDefinition {
pub name: Option<String>,
pub columns: Vec<String>,
pub referenced_table: String,
pub referenced_columns: Vec<String>,
pub on_delete: ForeignKeyAction,
pub on_update: ForeignKeyAction,
}Fields§
§name: Option<String>§columns: Vec<String>§referenced_table: String§referenced_columns: Vec<String>§on_delete: ForeignKeyAction§on_update: ForeignKeyActionTrait Implementations§
Source§impl Clone for ForeignKeyDefinition
impl Clone for ForeignKeyDefinition
Source§fn clone(&self) -> ForeignKeyDefinition
fn clone(&self) -> ForeignKeyDefinition
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 ForeignKeyDefinition
impl Debug for ForeignKeyDefinition
Source§impl PartialEq for ForeignKeyDefinition
impl PartialEq for ForeignKeyDefinition
impl Eq for ForeignKeyDefinition
impl StructuralPartialEq for ForeignKeyDefinition
Auto Trait Implementations§
impl Freeze for ForeignKeyDefinition
impl RefUnwindSafe for ForeignKeyDefinition
impl Send for ForeignKeyDefinition
impl Sync for ForeignKeyDefinition
impl Unpin for ForeignKeyDefinition
impl UnsafeUnpin for ForeignKeyDefinition
impl UnwindSafe for ForeignKeyDefinition
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