pub trait ModelHooks {
// Provided methods
async fn before_save(&mut self) -> Result<(), Error> { ... }
async fn after_save(&mut self) -> Result<(), Error> { ... }
}Provided Methods§
async fn before_save(&mut self) -> Result<(), Error>
async fn after_save(&mut self) -> Result<(), Error>
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.