Skip to main content

get_env_opt_bool

Function get_env_opt_bool 

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

Retrieve an environment variable as a boolean, returning None if not set or parsing fails.

#Parameters

  • key: The environment variable key to look up.

#Returns

  • Option<bool>: The parsed boolean value if successful, otherwise None.