pub trait CascadeDeleteNested<ID>: EsRepo {
// Required method
fn cascade_delete_in_op<OP, E>(
op: &mut OP,
parent_id: &ID,
) -> impl Future<Output = Result<(), E>> + Send
where OP: AtomicOperation,
E: From<Error> + Send;
}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, E>( op: &mut OP, parent_id: &ID, ) -> impl Future<Output = Result<(), E>> + Send
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.