pub trait CredentialHandler<Cx = RequestContext>:
Send
+ Sync
+ 'static {
// Required methods
fn list_credentials<'life0, 'async_trait>(
&'life0 self,
request: ListCredentialsRequest,
context: Cx,
) -> Pin<Box<dyn Future<Output = Result<ListCredentialsResponse>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
fn create_credential<'life0, 'async_trait>(
&'life0 self,
request: CreateCredentialRequest,
context: Cx,
) -> Pin<Box<dyn Future<Output = Result<Credential>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
fn get_credential<'life0, 'async_trait>(
&'life0 self,
request: GetCredentialRequest,
context: Cx,
) -> Pin<Box<dyn Future<Output = Result<Credential>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
fn update_credential<'life0, 'async_trait>(
&'life0 self,
request: UpdateCredentialRequest,
context: Cx,
) -> Pin<Box<dyn Future<Output = Result<Credential>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
fn delete_credential<'life0, 'async_trait>(
&'life0 self,
request: DeleteCredentialRequest,
context: Cx,
) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
}Required Methods§
fn list_credentials<'life0, 'async_trait>(
&'life0 self,
request: ListCredentialsRequest,
context: Cx,
) -> Pin<Box<dyn Future<Output = Result<ListCredentialsResponse>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn create_credential<'life0, 'async_trait>(
&'life0 self,
request: CreateCredentialRequest,
context: Cx,
) -> Pin<Box<dyn Future<Output = Result<Credential>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn get_credential<'life0, 'async_trait>(
&'life0 self,
request: GetCredentialRequest,
context: Cx,
) -> Pin<Box<dyn Future<Output = Result<Credential>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn update_credential<'life0, 'async_trait>(
&'life0 self,
request: UpdateCredentialRequest,
context: Cx,
) -> Pin<Box<dyn Future<Output = Result<Credential>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn delete_credential<'life0, 'async_trait>(
&'life0 self,
request: DeleteCredentialRequest,
context: Cx,
) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".