pub struct CredentialsHandle { /* private fields */ }Expand description
Type-erased registry container for runtime credential resolution.
Implementations§
Source§impl CredentialsHandle
impl CredentialsHandle
Sourcepub async fn resolve_bearer_token<Target: CredentialTarget>(
&self,
target: &Target,
) -> Result<Secret<String>, String>
pub async fn resolve_bearer_token<Target: CredentialTarget>( &self, target: &Target, ) -> Result<Secret<String>, String>
Resolves a scoped bearer token against registered providers.
Sourcepub async fn resolve_api_key<Target: CredentialTarget>(
&self,
target: &Target,
) -> Result<Secret<String>, String>
pub async fn resolve_api_key<Target: CredentialTarget>( &self, target: &Target, ) -> Result<Secret<String>, String>
Resolves an API key against registered providers.
Sourcepub async fn resolve_basic_auth<Target: CredentialTarget>(
&self,
target: &Target,
) -> Result<(String, Secret<String>), String>
pub async fn resolve_basic_auth<Target: CredentialTarget>( &self, target: &Target, ) -> Result<(String, Secret<String>), String>
Resolves basic authentication against registered providers.
Trait Implementations§
Source§impl Clone for CredentialsHandle
impl Clone for CredentialsHandle
Source§fn clone(&self) -> CredentialsHandle
fn clone(&self) -> CredentialsHandle
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Default for CredentialsHandle
impl Default for CredentialsHandle
Source§fn default() -> CredentialsHandle
fn default() -> CredentialsHandle
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl !RefUnwindSafe for CredentialsHandle
impl !UnwindSafe for CredentialsHandle
impl Freeze for CredentialsHandle
impl Send for CredentialsHandle
impl Sync for CredentialsHandle
impl Unpin for CredentialsHandle
impl UnsafeUnpin for CredentialsHandle
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more