pub struct ForeignKeySnapshot {
pub name: Option<String>,
pub columns: Vec<String>,
pub references_table: String,
pub references_columns: Vec<String>,
pub on_delete: Option<ForeignKeyAction>,
pub on_update: Option<ForeignKeyAction>,
}Expand description
A snapshot of a foreign key constraint.
Fields§
§name: Option<String>Optional constraint name.
columns: Vec<String>Columns in this table.
references_table: StringReferenced table.
references_columns: Vec<String>Referenced columns.
on_delete: Option<ForeignKeyAction>ON DELETE action.
on_update: Option<ForeignKeyAction>ON UPDATE action.
Trait Implementations§
Source§impl Clone for ForeignKeySnapshot
impl Clone for ForeignKeySnapshot
Source§fn clone(&self) -> ForeignKeySnapshot
fn clone(&self) -> ForeignKeySnapshot
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 ForeignKeySnapshot
impl Debug for ForeignKeySnapshot
Source§impl PartialEq for ForeignKeySnapshot
impl PartialEq for ForeignKeySnapshot
impl Eq for ForeignKeySnapshot
impl StructuralPartialEq for ForeignKeySnapshot
Auto Trait Implementations§
impl Freeze for ForeignKeySnapshot
impl RefUnwindSafe for ForeignKeySnapshot
impl Send for ForeignKeySnapshot
impl Sync for ForeignKeySnapshot
impl Unpin for ForeignKeySnapshot
impl UnsafeUnpin for ForeignKeySnapshot
impl UnwindSafe for ForeignKeySnapshot
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