pub enum FkAction {
NoAction,
Cascade,
SetNull,
SetDefault,
Restrict,
}Expand description
Foreign key action on DELETE/UPDATE.
Variants§
NoAction
No action on referenced row change.
Cascade
Cascade the delete/update to referencing rows.
SetNull
Set referencing column to NULL.
SetDefault
Set referencing column to its DEFAULT.
Restrict
Prevent the action (raises error).
Trait Implementations§
impl StructuralPartialEq for FkAction
Auto Trait Implementations§
impl Freeze for FkAction
impl RefUnwindSafe for FkAction
impl Send for FkAction
impl Sync for FkAction
impl Unpin for FkAction
impl UnsafeUnpin for FkAction
impl UnwindSafe for FkAction
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