get_env

Function get_env 

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

Reads an environment variable.

ยงDocker Secrets

If has_secret is true, it indicates that this environment variable has a Docker secret counterpart which should be prioritised over the original environment variable.

The name of secret environment variables is the same as the original name but with the "_FILE" suffix. This should point to the file that contains the secret value.