pub struct KeyVaultClient { /* private fields */ }Expand description
Client for fetching secrets from Azure KeyVault.
Implementations§
Source§impl KeyVaultClient
impl KeyVaultClient
Sourcepub fn new(vault_url: &str) -> Result<Self>
pub fn new(vault_url: &str) -> Result<Self>
Creates a new KeyVault client for the specified vault URL.
Credentials are determined in the following order:
- Environment variables:
AZURE_TENANT_ID,AZURE_CLIENT_ID,AZURE_CLIENT_SECRET - Developer Tools credential (Azure CLI, VS Code, etc.) unless disabled
via
AZURE_IDENTITY_DISABLE_MANAGED_IDENTITY_CREDENTIAL=true
Sourcepub fn with_config(vault_url: &str, config: CredentialConfig) -> Result<Self>
pub fn with_config(vault_url: &str, config: CredentialConfig) -> Result<Self>
Creates a new KeyVault client with explicit credential configuration.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for KeyVaultClient
impl !RefUnwindSafe for KeyVaultClient
impl Send for KeyVaultClient
impl Sync for KeyVaultClient
impl Unpin for KeyVaultClient
impl UnsafeUnpin for KeyVaultClient
impl !UnwindSafe for KeyVaultClient
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