pub trait CascadeDeleteNested<ID>: EsRepo {
// Required method
fn cascade_delete_in_op<OP>(
op: &mut OP,
parent_id: &ID,
) -> impl Future<Output = Result<(), RepoReadError>> + Send
where OP: AtomicOperation + ?Sized;
}Expand description
Trait for cascade soft-deleting child entities when a parent is deleted.
Generated automatically for nested repositories that have both a parent column
and delete = "soft" configured.
Required Methods§
fn cascade_delete_in_op<OP>(
op: &mut OP,
parent_id: &ID,
) -> impl Future<Output = Result<(), RepoReadError>> + Sendwhere
OP: AtomicOperation + ?Sized,
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".