[][src]Struct credentials::Client

pub struct Client { /* fields omitted */ }

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]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 

type Err = <U as TryFrom<T>>::Err

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,