pub enum MembershipLimit {
Fixed(usize),
Dynamic(MembershipLimitCallback),
}Expand description
Maximum members allowed in an organization.
Variants§
Fixed(usize)
Dynamic(MembershipLimitCallback)
Implementations§
Source§impl MembershipLimit
impl MembershipLimit
pub async fn resolve( &self, context: MembershipLimitContext, ) -> Result<usize, RustAuthError>
Trait Implementations§
Source§impl Clone for MembershipLimit
impl Clone for MembershipLimit
Source§fn clone(&self) -> MembershipLimit
fn clone(&self) -> MembershipLimit
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl !RefUnwindSafe for MembershipLimit
impl !UnwindSafe for MembershipLimit
impl Freeze for MembershipLimit
impl Send for MembershipLimit
impl Sync for MembershipLimit
impl Unpin for MembershipLimit
impl UnsafeUnpin for MembershipLimit
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more