pub struct ForeignKey {
pub table: String,
pub column: String,
pub on_delete: FkAction,
pub on_update: FkAction,
pub deferrable: Deferrable,
}Expand description
Foreign key reference definition.
Fields§
§table: StringReferenced table name.
column: StringReferenced column name.
on_delete: FkActionAction taken when the referenced row is deleted.
on_update: FkActionAction taken when the referenced row is updated.
deferrable: DeferrableDEFERRABLE clause (Phase 2)
Trait Implementations§
Source§impl Clone for ForeignKey
impl Clone for ForeignKey
Auto Trait Implementations§
impl Freeze for ForeignKey
impl RefUnwindSafe for ForeignKey
impl Send for ForeignKey
impl Sync for ForeignKey
impl Unpin for ForeignKey
impl UnsafeUnpin for ForeignKey
impl UnwindSafe for ForeignKey
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