pub struct ForeignKeySpec {
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 ForeignKeySpec
impl Clone for ForeignKeySpec
Source§fn clone(&self) -> ForeignKeySpec
fn clone(&self) -> ForeignKeySpec
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 ForeignKeySpec
impl RefUnwindSafe for ForeignKeySpec
impl Send for ForeignKeySpec
impl Sync for ForeignKeySpec
impl Unpin for ForeignKeySpec
impl UnsafeUnpin for ForeignKeySpec
impl UnwindSafe for ForeignKeySpec
Blanket Implementations§
impl<T> Allocation for T
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