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 |
| Error |
The Error type. |
| Options |
Options which can be passed to |
| Secretfile |
A basic interface for loading a |
| SecretfileKeys |
An iterator over the keys mentioned in a |
Enums
| ErrorKind |
The kind of an error. |
Traits
| ResultExt |
Additional methods for |
Functions
| file |
Fetch the value of a file-style credential. |
| var |
Fetch the value of an environment-variable-style credential. |
Type Definitions
| Result |
Convenient wrapper around |