pub enum OnDeleteAction {
NoAction,
Restrict,
Cascade,
SetNull,
SetDefault,
}Expand description
ON DELETE actions for foreign keys
Variants§
Implementations§
Trait Implementations§
Source§impl Clone for OnDeleteAction
impl Clone for OnDeleteAction
Source§fn clone(&self) -> OnDeleteAction
fn clone(&self) -> OnDeleteAction
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 OnDeleteAction
Source§impl Debug for OnDeleteAction
impl Debug for OnDeleteAction
Source§impl Default for OnDeleteAction
impl Default for OnDeleteAction
Source§fn default() -> OnDeleteAction
fn default() -> OnDeleteAction
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for OnDeleteAction
impl<'de> Deserialize<'de> for OnDeleteAction
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for OnDeleteAction
Source§impl PartialEq for OnDeleteAction
impl PartialEq for OnDeleteAction
Source§fn eq(&self, other: &OnDeleteAction) -> bool
fn eq(&self, other: &OnDeleteAction) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for OnDeleteAction
impl Serialize for OnDeleteAction
impl StructuralPartialEq for OnDeleteAction
Auto Trait Implementations§
impl Freeze for OnDeleteAction
impl RefUnwindSafe for OnDeleteAction
impl Send for OnDeleteAction
impl Sync for OnDeleteAction
impl Unpin for OnDeleteAction
impl UnsafeUnpin for OnDeleteAction
impl UnwindSafe for OnDeleteAction
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