How to Read an Environment Variable in Rust
Settings that change between computers, such as a database address or an API key, belong in environment variables. Rust reads them with std::env::var, which returns the value as a Result, and unwrap_or_default() turns a missing variable into an empty string.
