Function itconfig::get_env_or_panic [−][src]
pub fn get_env_or_panic<T>(env_name: &str) -> T where
T: FromEnvString,
Expand description
This function is similar as get_env
, but it unwraps result with panic on error.
Panics
Application will panic if environment variable is missing or cannot parse variable to expected type