pub trait UserCredentialApi: Send + Sync {
// Required methods
fn set_user_secret_key<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
access_key: &'life1 str,
secret_key: &'life2 SecretValue,
) -> Pin<Box<dyn Future<Output = Result<PasswordChangeResult>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait;
fn user_mfa_status<'life0, 'life1, 'async_trait>(
&'life0 self,
access_key: &'life1 str,
) -> Pin<Box<dyn Future<Output = Result<UserMfaStatus>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait;
fn user_mfa_reset<'life0, 'life1, 'async_trait>(
&'life0 self,
access_key: &'life1 str,
) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait;
}Required Methods§
Sourcefn set_user_secret_key<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
access_key: &'life1 str,
secret_key: &'life2 SecretValue,
) -> Pin<Box<dyn Future<Output = Result<PasswordChangeResult>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
fn set_user_secret_key<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
access_key: &'life1 str,
secret_key: &'life2 SecretValue,
) -> Pin<Box<dyn Future<Output = Result<PasswordChangeResult>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
Reset another identity’s secret key, preserving its status and policies.
fn user_mfa_status<'life0, 'life1, 'async_trait>(
&'life0 self,
access_key: &'life1 str,
) -> Pin<Box<dyn Future<Output = Result<UserMfaStatus>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Sourcefn user_mfa_reset<'life0, 'life1, 'async_trait>(
&'life0 self,
access_key: &'life1 str,
) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn user_mfa_reset<'life0, 'life1, 'async_trait>(
&'life0 self,
access_key: &'life1 str,
) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Clear another identity’s second factor: the break-glass path for a user who lost both their authenticator and their recovery codes.
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".