Function parse_bool

Source
fn parse_bool(key: &str) -> Option<bool>
Expand description

Extracts the env var by key and parses it as a bool

§Arguments

  • key - Key for the environment variable.

§Returns

Returns an Option<bool> if the value is available.

§Panics

If the value is present, but it is an invalid data-type.