Expand description
Environmental variables
Traits§
- From
String - For-internal-use trait for types that can be parsed from string
Functions§
- get_env
- Get environmental value
var_name. If value is not found returns Ok(None) - get_
env_ ignore_ error - Get environmental value
var_name. If value is not found returns None - get_
env_ with_ default - Get environmental value
var_name. If value is not found returnsdefault_value - get_
env_ with_ default_ ignore_ error - Get environmental value
var_name. If value is not found returnsdefault_value - is_set
- Return true if
var_nameis set and has a valid value - parse_
duration - Parse a duration using a regular expression. This function can be reused to parse arguments