pub trait SoftDelete: Model {
// Required methods
fn mark_deleted(&mut self);
fn is_deleted(&self) -> bool;
}Expand description
Trait for soft-deletable models.
Required Methods§
Sourcefn mark_deleted(&mut self)
fn mark_deleted(&mut self)
Mark the model as deleted.
Sourcefn is_deleted(&self) -> bool
fn is_deleted(&self) -> bool
Check if the model is deleted.
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.