don_core 0.2.5

Core engine for the Don Web Framework
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
// don_core/src/traits.rs


#[allow(async_fn_in_trait)]
pub trait DonHooks {
   
    async fn before_save(&mut self) -> Result<(), String> {
        Ok(()) 
    }

    
    async fn before_update(&mut self) -> Result<(), String> {
        Ok(())
    }
}