pub fn get_env_or_default<T: FromStr + Default>(
name: &str,
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
.