pub trait TableDefInterceptor<CT: CommandTransaction> {
// Required methods
fn post_create<'life0, 'life1, 'async_trait>(
&'life0 mut self,
post: &'life1 TableDef,
) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait;
fn pre_update<'life0, 'life1, 'async_trait>(
&'life0 mut self,
pre: &'life1 TableDef,
) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait;
fn post_update<'life0, 'life1, 'life2, 'async_trait>(
&'life0 mut self,
pre: &'life1 TableDef,
post: &'life2 TableDef,
) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait;
fn pre_delete<'life0, 'life1, 'async_trait>(
&'life0 mut self,
pre: &'life1 TableDef,
) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait;
}Required Methods§
Sourcefn post_create<'life0, 'life1, 'async_trait>(
&'life0 mut self,
post: &'life1 TableDef,
) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn post_create<'life0, 'life1, 'async_trait>(
&'life0 mut self,
post: &'life1 TableDef,
) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Intercept table definition post-create operations
Sourcefn pre_update<'life0, 'life1, 'async_trait>(
&'life0 mut self,
pre: &'life1 TableDef,
) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn pre_update<'life0, 'life1, 'async_trait>(
&'life0 mut self,
pre: &'life1 TableDef,
) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Intercept table definition pre-update operations
Sourcefn post_update<'life0, 'life1, 'life2, 'async_trait>(
&'life0 mut self,
pre: &'life1 TableDef,
post: &'life2 TableDef,
) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
fn post_update<'life0, 'life1, 'life2, 'async_trait>(
&'life0 mut self,
pre: &'life1 TableDef,
post: &'life2 TableDef,
) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
Intercept table definition post-update operations