Skip to main content

Crate use_env_key

Crate use_env_key 

Source
Expand description

§use-env-key

Primitive environment variable key vocabulary.

use-env-key models the key itself. It rejects empty keys and keys containing =, preserves case, and does not read from, write to, or mutate std::env.

use use_env_key::EnvKey;

let key = EnvKey::new("Path").unwrap();

assert_eq!(key.as_str(), "Path");
assert_eq!(key.to_string(), "Path");

Structs§

EnvKey
A validated environment variable key.

Enums§

EnvKeyError
Errors returned while constructing environment keys.