Skip to main content

OrganizationRoleStore

Trait OrganizationRoleStore 

Source
pub trait OrganizationRoleStore: Send + Sync {
    // Provided methods
    fn create_organization_role<'life0, 'async_trait>(
        &'life0 self,
        _data: CreateOrganizationRole,
    ) -> Pin<Box<dyn Future<Output = AuthResult<OrganizationRole>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait { ... }
    fn get_organization_role<'life0, 'life1, 'life2, 'async_trait>(
        &'life0 self,
        _organization_id: &'life1 str,
        _selector: &'life2 OrganizationRoleSelector,
    ) -> Pin<Box<dyn Future<Output = AuthResult<Option<OrganizationRole>>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait,
             'life1: 'async_trait,
             'life2: 'async_trait { ... }
    fn list_organization_roles<'life0, 'life1, 'async_trait>(
        &'life0 self,
        _organization_id: &'life1 str,
    ) -> Pin<Box<dyn Future<Output = AuthResult<Vec<OrganizationRole>>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait,
             'life1: 'async_trait { ... }
    fn count_organization_roles<'life0, 'life1, 'async_trait>(
        &'life0 self,
        _organization_id: &'life1 str,
    ) -> Pin<Box<dyn Future<Output = AuthResult<usize>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait,
             'life1: 'async_trait { ... }
    fn has_organization_role_members<'life0, 'life1, 'life2, 'async_trait>(
        &'life0 self,
        _organization_id: &'life1 str,
        _role: &'life2 str,
    ) -> Pin<Box<dyn Future<Output = AuthResult<bool>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait,
             'life1: 'async_trait,
             'life2: 'async_trait { ... }
    fn update_organization_role<'life0, 'life1, 'life2, 'async_trait>(
        &'life0 self,
        _organization_id: &'life1 str,
        _selector: &'life2 OrganizationRoleSelector,
        _update: UpdateOrganizationRole,
    ) -> Pin<Box<dyn Future<Output = AuthResult<OrganizationRole>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait,
             'life1: 'async_trait,
             'life2: 'async_trait { ... }
    fn delete_organization_role<'life0, 'life1, 'life2, 'async_trait>(
        &'life0 self,
        _organization_id: &'life1 str,
        _selector: &'life2 OrganizationRoleSelector,
    ) -> Pin<Box<dyn Future<Output = AuthResult<bool>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait,
             'life1: 'async_trait,
             'life2: 'async_trait { ... }
}

Provided Methods§

Source

fn create_organization_role<'life0, 'async_trait>( &'life0 self, _data: CreateOrganizationRole, ) -> Pin<Box<dyn Future<Output = AuthResult<OrganizationRole>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Source

fn get_organization_role<'life0, 'life1, 'life2, 'async_trait>( &'life0 self, _organization_id: &'life1 str, _selector: &'life2 OrganizationRoleSelector, ) -> Pin<Box<dyn Future<Output = AuthResult<Option<OrganizationRole>>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait, 'life2: 'async_trait,

Source

fn list_organization_roles<'life0, 'life1, 'async_trait>( &'life0 self, _organization_id: &'life1 str, ) -> Pin<Box<dyn Future<Output = AuthResult<Vec<OrganizationRole>>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait,

Source

fn count_organization_roles<'life0, 'life1, 'async_trait>( &'life0 self, _organization_id: &'life1 str, ) -> Pin<Box<dyn Future<Output = AuthResult<usize>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait,

Count all roles in the organization independently of the list query limit.

Source

fn has_organization_role_members<'life0, 'life1, 'life2, 'async_trait>( &'life0 self, _organization_id: &'life1 str, _role: &'life2 str, ) -> Pin<Box<dyn Future<Output = AuthResult<bool>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait, 'life2: 'async_trait,

Check exact comma-separated membership roles in the configured adapter page. The organization and role substring predicates are applied before pagination.

Source

fn update_organization_role<'life0, 'life1, 'life2, 'async_trait>( &'life0 self, _organization_id: &'life1 str, _selector: &'life2 OrganizationRoleSelector, _update: UpdateOrganizationRole, ) -> Pin<Box<dyn Future<Output = AuthResult<OrganizationRole>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait, 'life2: 'async_trait,

Source

fn delete_organization_role<'life0, 'life1, 'life2, 'async_trait>( &'life0 self, _organization_id: &'life1 str, _selector: &'life2 OrganizationRoleSelector, ) -> Pin<Box<dyn Future<Output = AuthResult<bool>> + 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".

Implementors§