pub enum AzureCredentials {
ServicePrincipal {
client_id: String,
client_secret: String,
},
AccessToken {
token: String,
},
WorkloadIdentity {
client_id: String,
tenant_id: String,
federated_token_file: String,
authority_host: String,
},
}Expand description
Represents Azure authentication credentials
Variants§
ServicePrincipal
Service principal with client secret
AccessToken
Direct access token
WorkloadIdentity
Azure AD Workload Identity (federated identity)
Trait Implementations§
Source§impl Clone for AzureCredentials
impl Clone for AzureCredentials
Source§fn clone(&self) -> AzureCredentials
fn clone(&self) -> AzureCredentials
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for AzureCredentials
impl Debug for AzureCredentials
Source§impl<'de> Deserialize<'de> for AzureCredentials
impl<'de> Deserialize<'de> for AzureCredentials
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for AzureCredentials
impl PartialEq for AzureCredentials
Source§impl Serialize for AzureCredentials
impl Serialize for AzureCredentials
impl Eq for AzureCredentials
impl StructuralPartialEq for AzureCredentials
Auto Trait Implementations§
impl Freeze for AzureCredentials
impl RefUnwindSafe for AzureCredentials
impl Send for AzureCredentials
impl Sync for AzureCredentials
impl Unpin for AzureCredentials
impl UnsafeUnpin for AzureCredentials
impl UnwindSafe for AzureCredentials
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.