fn var<T>(name: &str, default: Option<T>) -> Result<T>Expand description
Load and parse the value of an environment variable.
§Arguments
-
name- name of the environment variable to load. -
default- default value to use if the environment variable is not set. An error is returned if both the env variable is not set and the default value is None.