Struct azure_identity::AzureauthCliCredential
source · pub struct AzureauthCliCredential { /* private fields */ }
Expand description
Enables authentication to Azure Active Directory using Azure CLI to obtain an access token.
Implementations§
source§impl AzureauthCliCredential
impl AzureauthCliCredential
pub fn add_mode(self, mode: AzureauthCliMode) -> Self
pub fn with_modes(self, modes: Vec<AzureauthCliMode>) -> Self
pub fn with_prompt_hint<S>(self, hint: S) -> Self
Trait Implementations§
source§impl Debug for AzureauthCliCredential
impl Debug for AzureauthCliCredential
source§impl TokenCredential for AzureauthCliCredential
impl TokenCredential for AzureauthCliCredential
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 AzureauthCliCredential
impl !RefUnwindSafe for AzureauthCliCredential
impl Send for AzureauthCliCredential
impl Sync for AzureauthCliCredential
impl Unpin for AzureauthCliCredential
impl UnwindSafe for AzureauthCliCredential
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