pub struct SecureClientBuilder { /* private fields */ }
Implementations§
Source§impl SecureClientBuilder
impl SecureClientBuilder
Sourcepub fn with_secure_value(
self,
key: impl Into<String>,
value: SecureValue,
) -> Self
pub fn with_secure_value( self, key: impl Into<String>, value: SecureValue, ) -> Self
Add a secure value.
The key is the name you will use later to retrieve the value.
The value
may be either SecureValue::Static
(in which case the stored
value is returned) or SecureValue::Env
(in which case the stored value
is interpreted as an environment variable name and the environment variable’s
value is returned).
Sourcepub fn build(self) -> SecureClient
pub fn build(self) -> SecureClient
Build the SecureClient
.
Auto Trait Implementations§
impl Freeze for SecureClientBuilder
impl RefUnwindSafe for SecureClientBuilder
impl Send for SecureClientBuilder
impl Sync for SecureClientBuilder
impl Unpin for SecureClientBuilder
impl UnwindSafe for SecureClientBuilder
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