Function btlib::config_helpers::from_envvar
source · pub fn from_envvar(envvar_name: &str) -> Result<Option<String>>
Expand description
Returns the value of the given environment variable, if it is defined and contains all unicode
characters. Ok(None)
is returned if the environment variable is not defined, and Err is
returned if it contains non-unicode characters.