pub enum DeleteBehavior {
Restrict,
Cascade,
Break,
}Expand description
Defines the behavior for delete operations regarding foreign key constraints.
Variants§
Restrict
Delete only the records matching the filter.
Cascade
Cascade delete to related records.
Break
Break the foreign key references.
Don’t use this option unless you are sure what you’re doing!
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 · 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 DeleteBehavior
impl Debug for DeleteBehavior
Source§impl PartialEq for DeleteBehavior
impl PartialEq for DeleteBehavior
impl Copy for DeleteBehavior
impl Eq 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 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