[−][src]Trait envopt::EnvOpt
A struct that is converted from environment variables.
Required methods
fn validate() -> Result<(), Vec<String>>
Validate all configured environment variables.
Variants without a default cause an error.
fn value(&self) -> Result<String, String>
Get the value for a variant.
If it is missing the default value is returend. If no default is defined an error is returned.
Provided methods
fn validate_or_exit()
Validate all configured environment variables.
If variants without a default are missing exit.
fn value_or_exit(&self) -> String
Get the value for a variant.
If it is missing the default value is returend. If no default is defined exit.