pub struct CascadeDeleteDirective {
pub table: String,
pub fk_column: String,
pub principal_pk: i64,
pub action: CascadeDeleteAction,
}Expand description
A directive to delete or nullify untracked dependents of a Deleted principal. Generated during the cascade delete drain loop and executed as direct SQL at the start of the DELETE phase, before PK-based deletes.
Fields§
§table: StringThe table to act on (child table for HasMany, join table for M2M).
fk_column: StringThe FK column to filter on.
principal_pk: i64The principal’s PK value.
action: CascadeDeleteActionThe action to perform.
Auto Trait Implementations§
impl Freeze for CascadeDeleteDirective
impl RefUnwindSafe for CascadeDeleteDirective
impl Send for CascadeDeleteDirective
impl Sync for CascadeDeleteDirective
impl Unpin for CascadeDeleteDirective
impl UnsafeUnpin for CascadeDeleteDirective
impl UnwindSafe for CascadeDeleteDirective
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