Expand description
Library for common environment variable parsing functionality and types.
Structs§
- Bool
EnvVar Parser - Custom parser for Boolean env vars, allowing 1 and 0 in addition to true and false.
- Duration
EnvVar Parser - Parser for integer Duration env vars, specifying what unit to expect.
- EnvVar
- An abstraction around environment variable parsing.
- EnvVar
Custom Parser - A custom parser for an EnvVar.
- EnvVar
Default - An env var default value
- EnvVar
Error - EnvVar
From StrParser - A marker type indicating the EnvVar should use T’s FromStr implementation as a parser.
- EnvVar
NoDefault - Marker type for an EnvVar that has not configured a default.
- EnvVar
NoParser - Marker type for an EnvVar that has not configured a parser.
- Time
Delta EnvVar Parser
Enums§
Traits§
- EnvVar
Parser - A trait indicating that a type can parse an environment variable value into some other type.
- ErrString
With Source - GetDefault
- Trait to retrieve an EnvVar’s default value.
- Parse
Base - Trait defining parse methods available whether or not an EnvVar is configured with a default value.
- Parse
EnvVar Value - A trait indicating that an EnvVar can parse the value of its referenced environment variable.
- Parse
OrDefault - Trait for EnvVars that have a configured default.