Crate credentials[−][src]
Access secure credentials at runtime with multiple backends.
For more information, see the homepage.
use credentials; use std::env; env::set_var("PASSWORD", "secret"); assert_eq!("secret", credentials::var("PASSWORD").unwrap());
Structs
Client |
A client which fetches secrets. Under normal circumstances, it's
usually easier to use the static |
Options |
Options which can be passed to |
Secretfile |
A basic interface for loading a |
SecretfileKeys |
An iterator over the keys mentioned in a |
Enums
Error |
An error returned by |
Functions
file |
Fetch the value of a file-style credential. |
var |
Fetch the value of an environment-variable-style credential. |
Type Definitions
Result |
A result returned by functions in |