pub enum PassiveDeletes {
Active,
Passive,
All,
}Expand description
Passive delete behavior for relationships.
Controls whether the ORM emits DELETE statements for related objects or relies on the database’s foreign key ON DELETE cascade behavior.
Variants§
Active
ORM emits DELETE for related objects (default behavior).
Passive
ORM relies on database ON DELETE CASCADE; no DELETE emitted. The database foreign key must have ON DELETE CASCADE configured.
All
Like Passive, but also disables orphan tracking entirely. Use when you want complete database-side cascade with no ORM overhead.
Trait Implementations§
Source§impl Clone for PassiveDeletes
impl Clone for PassiveDeletes
Source§fn clone(&self) -> PassiveDeletes
fn clone(&self) -> PassiveDeletes
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 PassiveDeletes
impl Debug for PassiveDeletes
Source§impl Default for PassiveDeletes
impl Default for PassiveDeletes
Source§fn default() -> PassiveDeletes
fn default() -> PassiveDeletes
Returns the “default value” for a type. Read more
Source§impl PartialEq for PassiveDeletes
impl PartialEq for PassiveDeletes
impl Copy for PassiveDeletes
impl Eq for PassiveDeletes
impl StructuralPartialEq for PassiveDeletes
Auto Trait Implementations§
impl Freeze for PassiveDeletes
impl RefUnwindSafe for PassiveDeletes
impl Send for PassiveDeletes
impl Sync for PassiveDeletes
impl Unpin for PassiveDeletes
impl UnwindSafe for PassiveDeletes
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, _span: NoopSpan) -> Self
fn instrument(self, _span: NoopSpan) -> Self
Instruments this future with a span (no-op when disabled).
Source§fn in_current_span(self) -> Self
fn in_current_span(self) -> Self
Instruments this future with the current span (no-op when disabled).