Skip to main content

SoftDeleteProvider

Trait SoftDeleteProvider 

Source
pub trait SoftDeleteProvider: Send + Sync {
    // Required method
    fn apply(
        &self,
        context: SoftDeleteContext<'_>,
        changes: &mut Vec<ColumnValue>,
    ) -> Result<(), OrmError>;
}
Expand description

Runtime provider that mutates soft-delete changes before execution.

Required Methods§

Source

fn apply( &self, context: SoftDeleteContext<'_>, changes: &mut Vec<ColumnValue>, ) -> Result<(), OrmError>

Adds or adjusts soft-delete column values for the current context.

Implementors§