Skip to main content

ApplicationCredentialBackend

Trait ApplicationCredentialBackend 

Source
pub trait ApplicationCredentialBackend: Send + Sync {
    // Required methods
    fn create_application_credential<'life0, 'life1, 'async_trait>(
        &'life0 self,
        state: &'life1 ServiceState,
        rec: ApplicationCredentialCreate,
    ) -> Pin<Box<dyn Future<Output = Result<ApplicationCredentialCreateResponse, ApplicationCredentialProviderError>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait,
             'life1: 'async_trait;
    fn get_application_credential<'a, 'life0, 'life1, 'async_trait>(
        &'life0 self,
        state: &'life1 ServiceState,
        id: &'a str,
    ) -> Pin<Box<dyn Future<Output = Result<Option<ApplicationCredential>, ApplicationCredentialProviderError>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'a: 'async_trait,
             'life0: 'async_trait,
             'life1: 'async_trait;
    fn list_application_credentials<'life0, 'life1, 'life2, 'async_trait>(
        &'life0 self,
        state: &'life1 ServiceState,
        params: &'life2 ApplicationCredentialListParameters,
    ) -> Pin<Box<dyn Future<Output = Result<Vec<ApplicationCredential>, ApplicationCredentialProviderError>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait,
             'life1: 'async_trait,
             'life2: 'async_trait;
}
Expand description

Application Credential backend driver interface.

Required Methods§

Source

fn create_application_credential<'life0, 'life1, 'async_trait>( &'life0 self, state: &'life1 ServiceState, rec: ApplicationCredentialCreate, ) -> Pin<Box<dyn Future<Output = Result<ApplicationCredentialCreateResponse, ApplicationCredentialProviderError>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait,

Create a new application credential.

Source

fn get_application_credential<'a, 'life0, 'life1, 'async_trait>( &'life0 self, state: &'life1 ServiceState, id: &'a str, ) -> Pin<Box<dyn Future<Output = Result<Option<ApplicationCredential>, ApplicationCredentialProviderError>> + Send + 'async_trait>>
where Self: 'async_trait, 'a: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait,

Get a single application credential by ID.

Source

fn list_application_credentials<'life0, 'life1, 'life2, 'async_trait>( &'life0 self, state: &'life1 ServiceState, params: &'life2 ApplicationCredentialListParameters, ) -> Pin<Box<dyn Future<Output = Result<Vec<ApplicationCredential>, ApplicationCredentialProviderError>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait, 'life2: 'async_trait,

List application credentials.

Implementors§