pub struct VaultClientSettingsBuilder { /* private fields */ }
Expand description
Builder for VaultClientSettings
.
Implementations§
Source§impl VaultClientSettingsBuilder
impl VaultClientSettingsBuilder
pub fn ca_certs( &mut self, value: Vec<String>, ) -> &mut VaultClientSettingsBuilder
pub fn timeout( &mut self, value: Option<Duration>, ) -> &mut VaultClientSettingsBuilder
pub fn token<VALUE>(&mut self, value: VALUE) -> &mut VaultClientSettingsBuilder
pub fn verify(&mut self, value: bool) -> &mut VaultClientSettingsBuilder
pub fn version<VALUE>( &mut self, value: VALUE, ) -> &mut VaultClientSettingsBuilder
pub fn wrapping(&mut self, value: bool) -> &mut VaultClientSettingsBuilder
Sourcepub fn build(
&self,
) -> Result<VaultClientSettings, VaultClientSettingsBuilderError>
pub fn build( &self, ) -> Result<VaultClientSettings, VaultClientSettingsBuilderError>
Source§impl VaultClientSettingsBuilder
impl VaultClientSettingsBuilder
Sourcepub fn address<T>(&mut self, address: T) -> &mut VaultClientSettingsBuilder
pub fn address<T>(&mut self, address: T) -> &mut VaultClientSettingsBuilder
Set an address for vault. Note that if not set, it will default
to the VAULT_ADDR
environment variable and if that is not set either,
it will default to http://127.0.0.1:8200
.
§Panics
The setter will panic if the address given contains an invalid URL format.
Trait Implementations§
Source§impl Clone for VaultClientSettingsBuilder
impl Clone for VaultClientSettingsBuilder
Source§fn clone(&self) -> VaultClientSettingsBuilder
fn clone(&self) -> VaultClientSettingsBuilder
Returns a duplicate 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 moreSource§impl Default for VaultClientSettingsBuilder
impl Default for VaultClientSettingsBuilder
Source§fn default() -> VaultClientSettingsBuilder
fn default() -> VaultClientSettingsBuilder
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for VaultClientSettingsBuilder
impl RefUnwindSafe for VaultClientSettingsBuilder
impl Send for VaultClientSettingsBuilder
impl Sync for VaultClientSettingsBuilder
impl Unpin for VaultClientSettingsBuilder
impl UnwindSafe for VaultClientSettingsBuilder
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