pub struct DefaultAzureCredential { /* private fields */ }
Expand description
Provides a default TokenCredential
authentication flow for applications that will be deployed to Azure.
The following credential types if enabled will be tried, in order:
EnvironmentCredential
ManagedIdentityCredential
AzureCliCredential
Consult the documentation of these credential types for more information on how they attempt authentication.
Implementations§
Source§impl DefaultAzureCredential
impl DefaultAzureCredential
pub fn create(options: TokenCredentialOptions) -> Result<DefaultAzureCredential>
Trait Implementations§
Source§impl Debug for DefaultAzureCredential
impl Debug for DefaultAzureCredential
Source§impl TokenCredential for DefaultAzureCredential
impl TokenCredential for DefaultAzureCredential
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 !Freeze for DefaultAzureCredential
impl !RefUnwindSafe for DefaultAzureCredential
impl Send for DefaultAzureCredential
impl Sync for DefaultAzureCredential
impl Unpin for DefaultAzureCredential
impl !UnwindSafe for DefaultAzureCredential
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