Enum reqsign::AzureStorageCredential
source · pub enum AzureStorageCredential {
SharedKey(String, String),
SharedAccessSignature(String),
BearerToken(String),
}
Expand description
Credential that holds the access_key and secret_key.
Variants§
Credential via account key
Refer to https://learn.microsoft.com/en-us/rest/api/storageservices/authorize-with-shared-key
Credential via SAS token
Refer to https://learn.microsoft.com/en-us/rest/api/storageservices/create-account-sas
BearerToken(String)
Create an Bearer Token based credential
Azure Storage accepts OAuth 2.0 access tokens from the Azure AD tenant associated with the subscription that contains the storage account.
ref: https://docs.microsoft.com/rest/api/storageservices/authorize-with-azure-active-directory
Trait Implementations§
source§impl Clone for Credential
impl Clone for Credential
source§fn clone(&self) -> Credential
fn clone(&self) -> Credential
Returns a copy 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 more