Skip to main content

IdentityMappingBackend

Trait IdentityMappingBackend 

Source
pub trait IdentityMappingBackend: Send + Sync {
    // Required methods
    fn get_by_local_id<'a, 'life0, 'life1, 'async_trait>(
        &'life0 self,
        state: &'life1 ServiceState,
        local_id: &'a str,
        domain_id: &'a str,
        entity_type: IdMappingEntityType,
    ) -> Pin<Box<dyn Future<Output = Result<Option<IdMapping>, IdentityMappingProviderError>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'a: 'async_trait,
             'life0: 'async_trait,
             'life1: 'async_trait;
    fn get_by_public_id<'a, 'life0, 'life1, 'async_trait>(
        &'life0 self,
        state: &'life1 ServiceState,
        public_id: &'a str,
    ) -> Pin<Box<dyn Future<Output = Result<Option<IdMapping>, IdentityMappingProviderError>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'a: 'async_trait,
             'life0: 'async_trait,
             'life1: 'async_trait;
}

Required Methods§

Source

fn get_by_local_id<'a, 'life0, 'life1, 'async_trait>( &'life0 self, state: &'life1 ServiceState, local_id: &'a str, domain_id: &'a str, entity_type: IdMappingEntityType, ) -> Pin<Box<dyn Future<Output = Result<Option<IdMapping>, IdentityMappingProviderError>> + Send + 'async_trait>>
where Self: 'async_trait, 'a: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait,

Get the IdMapping by the local data.

Source

fn get_by_public_id<'a, 'life0, 'life1, 'async_trait>( &'life0 self, state: &'life1 ServiceState, public_id: &'a str, ) -> Pin<Box<dyn Future<Output = Result<Option<IdMapping>, IdentityMappingProviderError>> + Send + 'async_trait>>
where Self: 'async_trait, 'a: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait,

Get the IdMapping by the public_id.

Implementors§