[−][src]Struct credentials::Client
A client which fetches secrets. Under normal circumstances, it's
usually easier to use the static credentials::var
and
credentials::file
methods instead, but you may need to use this to
customize behavior.
Implementations
impl Client
[src]
pub fn new(options: Options) -> Result<Client>
[src]
Create a new client using the specified options.
pub fn default() -> Result<Client>
[src]
Create a new client using the default options.
pub fn with_secretfile(secretfile: Secretfile) -> Result<Client>
[src]
Create a new client using the specified Secretfile
.
pub fn secretfile(&self) -> &Secretfile
[src]
Provide access to a copy of the Secretfile we're using.
pub fn var<S: AsRef<str>>(&mut self, name: S) -> Result<String>
[src]
Fetch the value of an environment-variable-style credential.
pub fn file<S: AsRef<Path>>(&mut self, path: S) -> Result<String>
[src]
Fetch the value of a file-style credential.
Auto Trait Implementations
impl !RefUnwindSafe for Client
impl Send for Client
impl Sync for Client
impl Unpin for Client
impl !UnwindSafe for Client
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
U: TryFrom<T>,
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,