#[non_exhaustive]pub enum AzureConfigKey {
Show 16 variants
AccountName,
AccessKey,
ClientId,
ClientSecret,
AuthorityId,
AuthorityHost,
Scope,
Token,
Endpoint,
MsiEndpoint,
ObjectId,
MsiResourceId,
FederatedTokenFile,
UseAzureCli,
SkipSignature,
Client(ClientConfigKey),
}Expand description
Configuration keys for AzureBuilder
Configuration via keys can be done via AzureBuilder::with_config
§Example
let builder = AzureBuilder::new()
.with_config("azure_client_id".parse().unwrap(), "my-client-id")
.with_config(AzureConfigKey::AuthorityId, "my-tenant-id");Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
AccountName
The name of the azure storage account
Supported keys:
azure_storage_account_nameaccount_name
AccessKey
Master key for accessing storage account
Supported keys:
azure_storage_account_keyazure_storage_access_keyazure_storage_master_keyaccess_keyaccount_keymaster_key
ClientId
Service principal client id for authorizing requests
Supported keys:
azure_storage_client_idazure_client_idclient_id
ClientSecret
Service principal client secret for authorizing requests
Supported keys:
azure_storage_client_secretazure_client_secretclient_secret
AuthorityId
Tenant id used in oauth flows
Supported keys:
azure_storage_tenant_idazure_storage_authority_idazure_tenant_idazure_authority_idtenant_idauthority_id
AuthorityHost
Authority host used in oauth flows
Supported keys:
azure_storage_authority_hostazure_authority_hostauthority_host
Scope
OAuth scope for client credentials flow
Supported keys:
azure_scopescope
Token
Bearer token
Supported keys:
azure_storage_tokenbearer_tokentoken
Endpoint
Override the endpoint used to communicate with Azure
Supported keys:
azure_storage_endpointazure_endpointendpoint
MsiEndpoint
Endpoint to request a imds managed identity token
Supported keys:
azure_msi_endpointazure_identity_endpointidentity_endpointmsi_endpoint
ObjectId
Object id for use with managed identity authentication
Supported keys:
azure_object_idobject_id
MsiResourceId
Msi resource id for use with managed identity authentication
Supported keys:
azure_msi_resource_idmsi_resource_id
FederatedTokenFile
File containing token for Azure AD workload identity federation
Supported keys:
azure_federated_token_filefederated_token_file
UseAzureCli
Use azure cli for acquiring access token
Supported keys:
azure_use_azure_cliuse_azure_cli
SkipSignature
Skip signing requests
Supported keys:
azure_skip_signatureskip_signature
Client(ClientConfigKey)
Client options
Trait Implementations§
Source§impl AsRef<str> for AzureConfigKey
impl AsRef<str> for AzureConfigKey
Source§impl Clone for AzureConfigKey
impl Clone for AzureConfigKey
Source§fn clone(&self) -> AzureConfigKey
fn clone(&self) -> AzureConfigKey
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreimpl Copy for AzureConfigKey
Source§impl Debug for AzureConfigKey
impl Debug for AzureConfigKey
Source§impl<'de> Deserialize<'de> for AzureConfigKey
impl<'de> Deserialize<'de> for AzureConfigKey
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>,
impl Eq for AzureConfigKey
Source§impl FromStr for AzureConfigKey
impl FromStr for AzureConfigKey
Source§impl Hash for AzureConfigKey
impl Hash for AzureConfigKey
Source§impl PartialEq for AzureConfigKey
impl PartialEq for AzureConfigKey
Source§fn eq(&self, other: &AzureConfigKey) -> bool
fn eq(&self, other: &AzureConfigKey) -> bool
self and other values to be equal, and is used by ==.Source§impl Serialize for AzureConfigKey
impl Serialize for AzureConfigKey
impl StructuralPartialEq for AzureConfigKey
Auto Trait Implementations§
impl Freeze for AzureConfigKey
impl RefUnwindSafe for AzureConfigKey
impl Send for AzureConfigKey
impl Sync for AzureConfigKey
impl Unpin for AzureConfigKey
impl UnsafeUnpin for AzureConfigKey
impl UnwindSafe for AzureConfigKey
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
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
key and return true if they are equal.