pub(crate) trait CredentialResolver: Send + Sync {
// Required method
fn resolve<'life0, 'async_trait>(
&'life0 self,
target_system_id: Uuid,
kind: SealedTargetSystemKind,
) -> Pin<Box<dyn Future<Output = Result<ResolvedCredentials, ResolveError>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
}Expand description
Resolves credentials for a target system. async so an implementation can call an external
secrets manager.
Required Methods§
Sourcefn resolve<'life0, 'async_trait>(
&'life0 self,
target_system_id: Uuid,
kind: SealedTargetSystemKind,
) -> Pin<Box<dyn Future<Output = Result<ResolvedCredentials, ResolveError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn resolve<'life0, 'async_trait>(
&'life0 self,
target_system_id: Uuid,
kind: SealedTargetSystemKind,
) -> Pin<Box<dyn Future<Output = Result<ResolvedCredentials, ResolveError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
The resolved map contains at least the suffixes kind requires.
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".