pub struct VaultClientSettings {
pub address: Url,
pub ca_certs: Vec<String>,
pub identity: Option<Identity>,
pub timeout: Option<Duration>,
pub token: String,
pub verify: bool,
pub version: u8,
pub wrapping: bool,
pub namespace: Option<String>,
}
Expand description
Contains settings for configuring a VaultClient.
Most settings that are not directly configured will have their default value pulled from their respective environment variables. Specifically:
address
: VAULT_ADDR- `ca_certs: VAULT_CACERT / VAULT_CAPATH
token
: VAULT_TOKEN- verify`: VAULT_SKIP_VERIFY
The address
is validated when the settings are built and will throw an
error if the format is invalid.
Fields§
§address: Url
§ca_certs: Vec<String>
§identity: Option<Identity>
§timeout: Option<Duration>
§token: String
§verify: bool
§version: u8
§wrapping: bool
§namespace: Option<String>
Trait Implementations§
Source§impl Clone for VaultClientSettings
impl Clone for VaultClientSettings
Source§fn clone(&self) -> VaultClientSettings
fn clone(&self) -> VaultClientSettings
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 moreAuto Trait Implementations§
impl Freeze for VaultClientSettings
impl RefUnwindSafe for VaultClientSettings
impl Send for VaultClientSettings
impl Sync for VaultClientSettings
impl Unpin for VaultClientSettings
impl UnwindSafe for VaultClientSettings
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