ModelHooks

Trait ModelHooks 

Source
pub trait ModelHooks {
    // Provided methods
    fn before_save(&mut self) -> impl Future<Output = Result<(), Error>> + Send { ... }
    fn after_save(&mut self) -> impl Future<Output = Result<(), Error>> + Send { ... }
}

Provided Methods§

Source

fn before_save(&mut self) -> impl Future<Output = Result<(), Error>> + Send

Source

fn after_save(&mut self) -> impl Future<Output = Result<(), Error>> + 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.

Implementors§