pub enum DeleteBehavior {
Cascade,
Restrict,
SetNull,
NoAction,
}Expand description
Specifies the delete behavior for a relationship.
Corresponds to EFCore’s DeleteBehavior.
Variants§
Implementations§
Source§impl DeleteBehavior
impl DeleteBehavior
Sourcepub fn to_sql_clause(self) -> &'static str
pub fn to_sql_clause(self) -> &'static str
Maps to the SQL ON DELETE clause keyword.
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
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