pub enum DefaultAzureCredentialEnum {
Environment(EnvironmentCredential),
ManagedIdentity(ImdsManagedIdentityCredential),
AzureCli(AzureCliCredential),
}
Expand description
Types of TokenCredential
supported by DefaultAzureCredential
Variants§
Environment(EnvironmentCredential)
TokenCredential
from environment variable.
ManagedIdentity(ImdsManagedIdentityCredential)
TokenCredential
from managed identity that has been assigned in this deployment environment.
AzureCli(AzureCliCredential)
TokenCredential
from Azure CLI.
Trait Implementations§
source§impl Debug for DefaultAzureCredentialEnum
impl Debug for DefaultAzureCredentialEnum
source§impl TokenCredential for DefaultAzureCredentialEnum
impl TokenCredential for DefaultAzureCredentialEnum
source§fn clear_cache<'life0, 'async_trait>(
&'life0 self
) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn clear_cache<'life0, 'async_trait>(
&'life0 self
) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Clear the credential’s cache.
source§fn get_token<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
scopes: &'life1 [&'life2 str]
) -> Pin<Box<dyn Future<Output = Result<AccessToken>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
fn get_token<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
scopes: &'life1 [&'life2 str]
) -> Pin<Box<dyn Future<Output = Result<AccessToken>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
Gets a
AccessToken
for the specified resourceAuto Trait Implementations§
impl !RefUnwindSafe for DefaultAzureCredentialEnum
impl Send for DefaultAzureCredentialEnum
impl Sync for DefaultAzureCredentialEnum
impl Unpin for DefaultAzureCredentialEnum
impl !UnwindSafe for DefaultAzureCredentialEnum
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