pub trait OrganizationMembershipLimitResolver:
Debug
+ Send
+ Sync {
// Required method
fn maximum_members<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
user: &'life1 UserView,
organization: &'life2 OrganizationResponse,
) -> Pin<Box<dyn Future<Output = AuthResult<f64>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait;
}Expand description
Evaluated after the actual member count and organization lookup, over the target user and raw stored organization. Read pages never invoke this callback.
Required Methods§
fn maximum_members<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
user: &'life1 UserView,
organization: &'life2 OrganizationResponse,
) -> Pin<Box<dyn Future<Output = AuthResult<f64>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".