Function envoption::require
[−]
[src]
pub fn require<T>(var_name: &str) -> Result<T, EnvOptionError<T::Err>> where
T: FromStr + Debug,
T::Err: Error,
Get an environment variable, and return an error if it doesn't exist.