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]
impl Secretfile
pub fn read(read: &mut Read) -> Result<Secretfile>
[src]
pub fn read(read: &mut Read) -> Result<Secretfile>
Read in from an io::Read
object.
pub fn from_str<S: AsRef<str>>(s: S) -> Result<Secretfile>
[src]
pub fn from_str<S: AsRef<str>>(s: S) -> Result<Secretfile>
Read a Secretfile
from a string.
pub fn from_path<P: AsRef<Path>>(path: P) -> Result<Secretfile>
[src]
pub fn from_path<P: AsRef<Path>>(path: P) -> Result<Secretfile>
Load the Secretfile
at the specified path.
pub fn set_built_in(secretfile: Option<Secretfile>)
[src]
pub fn set_built_in(secretfile: Option<Secretfile>)
Set a built-in Secretfile
. This is intended for command-line
applications called directly by users, which do not normally have a
Secretfile
in the current directory, and which probably want to ignore
one if it exists.
This must be called before credentials::var
.
pub fn default() -> Result<Secretfile>
[src]
pub fn default() -> Result<Secretfile>
Load the default Secretfile
. This is normally Secretfile
in the
current working directory, but it can be overridden using
Secretfile::set_built_in
.
ⓘImportant traits for SecretfileKeys<'a>pub fn vars(&self) -> SecretfileKeys
[src]
pub fn vars(&self) -> SecretfileKeys
Return an iterator over the environment variables listed in this file.
ⓘImportant traits for SecretfileKeys<'a>pub fn files(&self) -> SecretfileKeys
[src]
pub fn files(&self) -> SecretfileKeys
Return an iterator over the credential files listed in this file.
Trait Implementations
impl Debug for Secretfile
[src]
impl Debug for Secretfile
fn fmt(&self, f: &mut Formatter) -> Result
[src]
fn fmt(&self, f: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl Clone for Secretfile
[src]
impl Clone for Secretfile
fn clone(&self) -> Secretfile
[src]
fn clone(&self) -> Secretfile
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
Auto Trait Implementations
impl Send for Secretfile
impl Send for Secretfile
impl Sync for Secretfile
impl Sync for Secretfile