#[non_exhaustive]pub enum AzureConfigKey {
Show 19 variants
AccountName,
AccessKey,
ClientId,
ClientSecret,
AuthorityId,
SasKey,
Token,
UseEmulator,
Endpoint,
UseFabricEndpoint,
MsiEndpoint,
ObjectId,
MsiResourceId,
FederatedTokenFile,
UseAzureCli,
SkipSignature,
ContainerName,
DisableTagging,
Client(ClientConfigKey),
}Expand description
Configuration keys for MicrosoftAzureBuilder
Configuration via keys can be done via MicrosoftAzureBuilder::with_config
§Example
let builder = MicrosoftAzureBuilder::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
SasKey
Shared access signature.
The signature is expected to be percent-encoded, much like they are provided in the azure storage explorer or azure portal.
Supported keys:
azure_storage_sas_keyazure_storage_sas_tokensas_keysas_token
Token
Bearer token
Supported keys:
azure_storage_tokenbearer_tokentoken
UseEmulator
Use object store with azurite storage emulator
Supported keys:
azure_storage_use_emulatorobject_store_use_emulatoruse_emulator
Endpoint
Override the endpoint used to communicate with blob storage
Supported keys:
azure_storage_endpointazure_endpointendpoint
UseFabricEndpoint
Use object store with url scheme account.dfs.fabric.microsoft.com
Supported keys:
azure_use_fabric_endpointuse_fabric_endpoint
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
ContainerName
Container name
Supported keys:
azure_container_namecontainer_name
DisableTagging
Disables tagging objects
This can be desirable if not supported by the backing store
Supported keys:
azure_disable_taggingdisable_tagging
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 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§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>,
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§impl Serialize for AzureConfigKey
impl Serialize for AzureConfigKey
impl Copy for AzureConfigKey
impl Eq 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 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,
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.Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more