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]

Read in from an io::Read object.

Read a Secretfile from a string.

Load the Secretfile at the specified path.

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.

Load the default Secretfile. This is normally Secretfile in the current working directory, but it can be overridden using Secretfile::set_built_in.

Return an iterator over the environment variables listed in this file.

Return an iterator over the credential files listed in this file.

Trait Implementations

impl Debug for Secretfile
[src]

Formats the value using the given formatter.

impl Clone for Secretfile
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more