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 Self
pub fn identity(&mut self, value: Option<Identity>) -> &mut Self
pub fn timeout(&mut self, value: Option<Duration>) -> &mut Self
pub fn token<VALUE: Into<String>>(&mut self, value: VALUE) -> &mut Self
pub fn verify(&mut self, value: bool) -> &mut Self
pub fn version<VALUE: Into<u8>>(&mut self, value: VALUE) -> &mut Self
pub fn wrapping(&mut self, value: bool) -> &mut Self
pub fn namespace(&mut self, value: Option<String>) -> &mut Self
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 Self
pub fn address<T>(&mut self, address: T) -> &mut Self
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.
pub fn set_namespace(&mut self, str: String) -> &mut Self
Trait Implementations§
source§impl Clone for VaultClientSettingsBuilder
impl Clone for VaultClientSettingsBuilder
source§fn clone(&self) -> VaultClientSettingsBuilder
fn clone(&self) -> VaultClientSettingsBuilder
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 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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)