Skip to main content

required

Function required 

Source
pub fn required(key: &str) -> Result<String, EnvError>
Expand description

Reads a variable which must be present and non-blank.

ยงErrors

EnvError::Missing if unset, EnvError::Empty if blank once trimmed, EnvError::NotUnicode if the value is not valid Unicode.