pub enum ForeignKeyActions {
Cascade,
Restrict,
SetNull,
NoAction,
SetDefault,
}
Expand description
Enum that benefits you to define what you want with a foreign key.
Variants§
Trait Implementations§
Source§impl Clone for ForeignKeyActions
impl Clone for ForeignKeyActions
Source§fn clone(&self) -> ForeignKeyActions
fn clone(&self) -> ForeignKeyActions
Returns a duplicate of the value. Read more
1.0.0 · Source§const fn clone_from(&mut self, source: &Self)
const fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for ForeignKeyActions
impl Debug for ForeignKeyActions
Auto Trait Implementations§
impl Freeze for ForeignKeyActions
impl RefUnwindSafe for ForeignKeyActions
impl Send for ForeignKeyActions
impl Sync for ForeignKeyActions
impl Unpin for ForeignKeyActions
impl UnwindSafe for ForeignKeyActions
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