pub struct ForeignKeyClause {
pub table: String,
pub columns: Vec<String>,
pub actions: Vec<ForeignKeyAction>,
pub deferrable: Option<Deferrable>,
}Expand description
A REFERENCES clause for foreign keys.
Fields§
§table: StringReferenced table.
columns: Vec<String>Referenced columns (empty = implicit rowid).
actions: Vec<ForeignKeyAction>ON DELETE / ON UPDATE actions.
deferrable: Option<Deferrable>DEFERRABLE clause.
Trait Implementations§
Source§impl Clone for ForeignKeyClause
impl Clone for ForeignKeyClause
Source§fn clone(&self) -> ForeignKeyClause
fn clone(&self) -> ForeignKeyClause
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 moreSource§impl Debug for ForeignKeyClause
impl Debug for ForeignKeyClause
Source§impl Display for ForeignKeyClause
impl Display 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