Skip to main content

Crate parsenv

Crate parsenv 

Source
Expand description

Library for common environment variable parsing functionality and types.

Structs§

BoolEnvVarParser
Custom parser for Boolean env vars, allowing 1 and 0 in addition to true and false.
DurationEnvVarParser
Parser for integer Duration env vars, specifying what unit to expect.
EnvVar
An abstraction around environment variable parsing.
EnvVarCustomParser
A custom parser for an EnvVar.
EnvVarDefault
An env var default value
EnvVarError
EnvVarFromStrParser
A marker type indicating the EnvVar should use T’s FromStr implementation as a parser.
EnvVarNoDefault
Marker type for an EnvVar that has not configured a default.
EnvVarNoParser
Marker type for an EnvVar that has not configured a parser.
TimeDeltaEnvVarParser

Enums§

DurationEnvVarUnit
EnvVarErrorKind

Traits§

EnvVarParser
A trait indicating that a type can parse an environment variable value into some other type.
ErrStringWithSource
GetDefault
Trait to retrieve an EnvVar’s default value.
ParseBase
Trait defining parse methods available whether or not an EnvVar is configured with a default value.
ParseEnvVarValue
A trait indicating that an EnvVar can parse the value of its referenced environment variable.
ParseOrDefault
Trait for EnvVars that have a configured default.