pub struct DeviceCodeCredential { /* private fields */ }Expand description
Enables authentication to an Azure Client using a Device Code workflow.
Implementations§
Trait Implementations§
Source§impl Debug for DeviceCodeCredential
impl Debug for DeviceCodeCredential
Source§impl TokenCredential for DeviceCodeCredential
impl TokenCredential for DeviceCodeCredential
Source§fn get_token<'life0, 'life1, 'life2, 'life3, 'async_trait>(
&'life0 self,
scopes: &'life1 [&'life2 str],
options: Option<TokenRequestOptions<'life3>>,
) -> Pin<Box<dyn Future<Output = Result<AccessToken>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
'life3: 'async_trait,
fn get_token<'life0, 'life1, 'life2, 'life3, 'async_trait>(
&'life0 self,
scopes: &'life1 [&'life2 str],
options: Option<TokenRequestOptions<'life3>>,
) -> Pin<Box<dyn Future<Output = Result<AccessToken>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
'life3: 'async_trait,
Gets an
AccessToken for the specified scopesAuto Trait Implementations§
impl !Freeze for DeviceCodeCredential
impl !RefUnwindSafe for DeviceCodeCredential
impl Send for DeviceCodeCredential
impl Sync for DeviceCodeCredential
impl Unpin for DeviceCodeCredential
impl UnsafeUnpin for DeviceCodeCredential
impl UnwindSafe for DeviceCodeCredential
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