pub trait OrganizationTeamHooks:
Debug
+ Send
+ Sync {
// Provided methods
fn before_create<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
_data: &'life1 mut CreateTeam,
_context: &'life2 TeamHookContext,
) -> Pin<Box<dyn Future<Output = AuthResult<()>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait { ... }
fn after_create<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
_team: &'life1 Team,
_context: &'life2 TeamHookContext,
) -> Pin<Box<dyn Future<Output = AuthResult<()>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait { ... }
fn before_update<'life0, 'life1, 'life2, 'life3, 'async_trait>(
&'life0 self,
_team: &'life1 Team,
_updates: &'life2 mut UpdateTeam,
_context: &'life3 TeamHookContext,
) -> Pin<Box<dyn Future<Output = AuthResult<()>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
'life3: 'async_trait { ... }
fn after_update<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
_team: &'life1 Team,
_context: &'life2 TeamHookContext,
) -> Pin<Box<dyn Future<Output = AuthResult<()>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait { ... }
fn before_delete<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
_team: &'life1 Team,
_context: &'life2 TeamHookContext,
) -> Pin<Box<dyn Future<Output = AuthResult<()>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait { ... }
fn after_delete<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
_team: &'life1 Team,
_context: &'life2 TeamHookContext,
) -> Pin<Box<dyn Future<Output = AuthResult<()>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait { ... }
fn before_add_member<'life0, 'life1, 'life2, 'life3, 'async_trait>(
&'life0 self,
_team: &'life1 Team,
_user: &'life2 UserView,
_context: &'life3 TeamHookContext,
) -> Pin<Box<dyn Future<Output = AuthResult<()>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
'life3: 'async_trait { ... }
fn after_add_member<'life0, 'life1, 'life2, 'life3, 'life4, 'async_trait>(
&'life0 self,
_member: &'life1 TeamMember,
_team: &'life2 Team,
_user: &'life3 UserView,
_context: &'life4 TeamHookContext,
) -> Pin<Box<dyn Future<Output = AuthResult<()>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
'life3: 'async_trait,
'life4: 'async_trait { ... }
fn before_remove_member<'life0, 'life1, 'life2, 'life3, 'life4, 'async_trait>(
&'life0 self,
_member: &'life1 TeamMember,
_team: &'life2 Team,
_user: &'life3 UserView,
_context: &'life4 TeamHookContext,
) -> Pin<Box<dyn Future<Output = AuthResult<()>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
'life3: 'async_trait,
'life4: 'async_trait { ... }
fn after_remove_member<'life0, 'life1, 'life2, 'life3, 'life4, 'async_trait>(
&'life0 self,
_member: &'life1 TeamMember,
_team: &'life2 Team,
_user: &'life3 UserView,
_context: &'life4 TeamHookContext,
) -> Pin<Box<dyn Future<Output = AuthResult<()>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
'life3: 'async_trait,
'life4: 'async_trait { ... }
}Provided Methods§
fn before_create<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
_data: &'life1 mut CreateTeam,
_context: &'life2 TeamHookContext,
) -> Pin<Box<dyn Future<Output = AuthResult<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
fn after_create<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
_team: &'life1 Team,
_context: &'life2 TeamHookContext,
) -> Pin<Box<dyn Future<Output = AuthResult<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
fn before_update<'life0, 'life1, 'life2, 'life3, 'async_trait>(
&'life0 self,
_team: &'life1 Team,
_updates: &'life2 mut UpdateTeam,
_context: &'life3 TeamHookContext,
) -> Pin<Box<dyn Future<Output = AuthResult<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
'life3: 'async_trait,
fn after_update<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
_team: &'life1 Team,
_context: &'life2 TeamHookContext,
) -> Pin<Box<dyn Future<Output = AuthResult<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
fn before_delete<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
_team: &'life1 Team,
_context: &'life2 TeamHookContext,
) -> Pin<Box<dyn Future<Output = AuthResult<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
fn after_delete<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
_team: &'life1 Team,
_context: &'life2 TeamHookContext,
) -> Pin<Box<dyn Future<Output = AuthResult<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
fn before_add_member<'life0, 'life1, 'life2, 'life3, 'async_trait>(
&'life0 self,
_team: &'life1 Team,
_user: &'life2 UserView,
_context: &'life3 TeamHookContext,
) -> Pin<Box<dyn Future<Output = AuthResult<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
'life3: 'async_trait,
fn after_add_member<'life0, 'life1, 'life2, 'life3, 'life4, 'async_trait>(
&'life0 self,
_member: &'life1 TeamMember,
_team: &'life2 Team,
_user: &'life3 UserView,
_context: &'life4 TeamHookContext,
) -> Pin<Box<dyn Future<Output = AuthResult<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
'life3: 'async_trait,
'life4: 'async_trait,
fn before_remove_member<'life0, 'life1, 'life2, 'life3, 'life4, 'async_trait>(
&'life0 self,
_member: &'life1 TeamMember,
_team: &'life2 Team,
_user: &'life3 UserView,
_context: &'life4 TeamHookContext,
) -> Pin<Box<dyn Future<Output = AuthResult<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
'life3: 'async_trait,
'life4: 'async_trait,
fn after_remove_member<'life0, 'life1, 'life2, 'life3, 'life4, 'async_trait>(
&'life0 self,
_member: &'life1 TeamMember,
_team: &'life2 Team,
_user: &'life3 UserView,
_context: &'life4 TeamHookContext,
) -> Pin<Box<dyn Future<Output = AuthResult<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
'life3: 'async_trait,
'life4: 'async_trait,
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".