Crate envoption

Source

Enums§

EnvOptionError
OptionType
The behavior if the environment variable is not set.

Functions§

get
Get an environment variable, using the given mode to determine behavior when it is not set.
optional
Get an environment variable, returning None if it doesn’t exist.
require
Get an environment variable, and return an error if it doesn’t exist.
with_default
Get an environment variable, returning a default value if it doesn’t exist.