Struct credentials::Secretfile
[−]
[src]
pub struct Secretfile { /* fields omitted */ }A basic interface for loading a Secretfile and listing the various
variables and files contained inside.
Methods
impl Secretfile[src]
fn read(read: &mut Read) -> Result<Secretfile>
Read in from an io::Read object.
fn from_str<S: AsRef<str>>(s: S) -> Result<Secretfile>
Read a Secretfile from a string. Currently only used for testing.
fn from_path<P: AsRef<Path>>(path: P) -> Result<Secretfile>
Load the Secretfile at the specified path.
fn default() -> Result<Secretfile>
Load the default Secretfile.
fn vars(&self) -> SecretfileKeys
Return an iterator over the environment variables listed in this file.
fn files(&self) -> SecretfileKeys
Return an iterator over the credential files listed in this file.
Trait Implementations
impl Debug for Secretfile[src]
impl Clone for Secretfile[src]
fn clone(&self) -> Secretfile
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)1.0.0
Performs copy-assignment from source. Read more