#[repr(u8)]pub enum OnDeleteSnapshot {
Restrict = 1,
Cascade = 2,
}Expand description
Stable, tag-keyed encoding of the ON DELETE referential action.
Mirrors DeleteBehavior. Discriminants are part of the on-disk format and must not be reused
or reordered; new variants must take a fresh tag.
Variants§
Restrict = 1
Reject deletion of referenced row while dependent rows exist.
Cascade = 2
Delete dependent rows together with referenced row.
Trait Implementations§
Source§impl Clone for OnDeleteSnapshot
impl Clone for OnDeleteSnapshot
Source§fn clone(&self) -> OnDeleteSnapshot
fn clone(&self) -> OnDeleteSnapshot
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for OnDeleteSnapshot
impl Debug for OnDeleteSnapshot
Source§impl<'de> Deserialize<'de> for OnDeleteSnapshot
impl<'de> Deserialize<'de> for OnDeleteSnapshot
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
Source§impl PartialEq for OnDeleteSnapshot
impl PartialEq for OnDeleteSnapshot
Source§impl Serialize for OnDeleteSnapshot
impl Serialize for OnDeleteSnapshot
impl Copy for OnDeleteSnapshot
impl Eq for OnDeleteSnapshot
impl StructuralPartialEq for OnDeleteSnapshot
Auto Trait Implementations§
impl Freeze for OnDeleteSnapshot
impl RefUnwindSafe for OnDeleteSnapshot
impl Send for OnDeleteSnapshot
impl Sync for OnDeleteSnapshot
impl Unpin for OnDeleteSnapshot
impl UnsafeUnpin for OnDeleteSnapshot
impl UnwindSafe for OnDeleteSnapshot
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