Skip to main content

read_bool_env

Function read_bool_env 

Source
pub fn read_bool_env(name: &str) -> Result<Option<bool>>
Expand description

Read and strictly parse a boolean environment variable.

An unset variable returns Ok(None). A present empty, unknown, or non-Unicode value returns a typed configuration error.