get_env_or

Function get_env_or 

Source
pub fn get_env_or<T: FromStr>(name: &str, default: T, has_secret: bool) -> T
Expand description

Reads an environment variable and returns its value if it exists; otherwise, the default value is returned.

For more information, see get_env.