pub struct ForeignKeyClause {
pub table: NameId,
pub columns: Vec<NameId>,
pub actions: Vec<ForeignKeyAction>,
pub deferrable: Option<bool>,
pub initially_deferred: bool,
}Expand description
A foreign-key clause, on a column or on a table.
Fields§
§table: NameIdThe parent table.
columns: Vec<NameId>The parent columns, when written.
actions: Vec<ForeignKeyAction>The ON DELETE/ON UPDATE/MATCH clauses, as written.
deferrable: Option<bool>Whether the constraint is deferrable.
initially_deferred: boolWhether it is initially deferred.
Trait Implementations§
Source§impl Clone for ForeignKeyClause
impl Clone for ForeignKeyClause
Source§impl Debug for ForeignKeyClause
impl Debug for ForeignKeyClause
impl Eq for ForeignKeyClause
Source§impl PartialEq for ForeignKeyClause
impl PartialEq for ForeignKeyClause
impl StructuralPartialEq for ForeignKeyClause
Auto Trait Implementations§
impl Freeze for ForeignKeyClause
impl RefUnwindSafe for ForeignKeyClause
impl Send for ForeignKeyClause
impl Sync for ForeignKeyClause
impl Unpin for ForeignKeyClause
impl UnsafeUnpin for ForeignKeyClause
impl UnwindSafe for ForeignKeyClause
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