pub enum ForeignKeyAction {
NoAction,
Restrict,
Cascade,
SetNull,
SetDefault,
}Expand description
Foreign key referential action.
Variants§
NoAction
No action.
Restrict
Restrict deletion/update.
Cascade
Cascade the operation.
SetNull
Set to NULL.
SetDefault
Set to default value.
Implementations§
Trait Implementations§
Source§impl Clone for ForeignKeyAction
impl Clone for ForeignKeyAction
Source§fn clone(&self) -> ForeignKeyAction
fn clone(&self) -> ForeignKeyAction
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 moreimpl Copy for ForeignKeyAction
Source§impl Debug for ForeignKeyAction
impl Debug for ForeignKeyAction
impl Eq for ForeignKeyAction
Source§impl PartialEq for ForeignKeyAction
impl PartialEq for ForeignKeyAction
Source§fn eq(&self, other: &ForeignKeyAction) -> bool
fn eq(&self, other: &ForeignKeyAction) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for ForeignKeyAction
Auto Trait Implementations§
impl Freeze for ForeignKeyAction
impl RefUnwindSafe for ForeignKeyAction
impl Send for ForeignKeyAction
impl Sync for ForeignKeyAction
impl Unpin for ForeignKeyAction
impl UnsafeUnpin for ForeignKeyAction
impl UnwindSafe for ForeignKeyAction
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