pub enum DeleteBehavior {
Cascade,
Restrict,
SetNull,
NoAction,
}Expand description
Specifies the delete behavior for a relationship.
Corresponds to EFCore’s DeleteBehavior.
Variants§
Trait Implementations§
Source§impl Clone for DeleteBehavior
impl Clone for DeleteBehavior
Source§fn clone(&self) -> DeleteBehavior
fn clone(&self) -> DeleteBehavior
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 DeleteBehavior
Source§impl Debug for DeleteBehavior
impl Debug for DeleteBehavior
impl Eq for DeleteBehavior
Source§impl PartialEq for DeleteBehavior
impl PartialEq for DeleteBehavior
Source§fn eq(&self, other: &DeleteBehavior) -> bool
fn eq(&self, other: &DeleteBehavior) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for DeleteBehavior
Auto Trait Implementations§
impl Freeze for DeleteBehavior
impl RefUnwindSafe for DeleteBehavior
impl Send for DeleteBehavior
impl Sync for DeleteBehavior
impl Unpin for DeleteBehavior
impl UnsafeUnpin for DeleteBehavior
impl UnwindSafe for DeleteBehavior
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