pub enum OrganizationLimit {
Fixed(usize),
Dynamic(OrganizationLimitCallback),
}Expand description
Maximum organizations a user may create.
Variants§
Fixed(usize)
Dynamic(OrganizationLimitCallback)
Implementations§
Source§impl OrganizationLimit
impl OrganizationLimit
pub async fn is_reached( &self, user: &User, current_count: usize, ) -> Result<bool, RustAuthError>
Trait Implementations§
Source§impl Clone for OrganizationLimit
impl Clone for OrganizationLimit
Source§fn clone(&self) -> OrganizationLimit
fn clone(&self) -> OrganizationLimit
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 OrganizationLimit
impl !UnwindSafe for OrganizationLimit
impl Freeze for OrganizationLimit
impl Send for OrganizationLimit
impl Sync for OrganizationLimit
impl Unpin for OrganizationLimit
impl UnsafeUnpin for OrganizationLimit
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