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§
Sourcefn 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 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.
Sourcefn 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 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.
Sourcefn 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,
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.