Skip to main content

Crate lockedenv

Crate lockedenv 

Source
Expand description

Type-safe, freeze-on-load environment variable management. Read and parse your environment once at startup into a generated struct.

Re-exports§

pub use error::EnvLockError;
pub use parse::FromEnvStr;
pub use parse::Secret;

Modules§

error
lock
Internal helpers for macro-generated code; not part of the public API.
parse

Macros§

from_map
try_from_map! variant that panics on failure.
load
Parse the environment and panic on error; returns the generated struct.
try_from_map
Like try_load! but parses from a provided HashMap instead of the OS env.
try_load
Like load! but returns a Result<_, EnvLockError> instead of panicking.