normalize_bool_config_value

Function normalize_bool_config_value 

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

Normalizes a bool-like runtime configuration value for storage.

Accepted input forms match parse_bool_like_value. The stored value is always the canonical string true or false.

ยงErrors

Returns [ConfigError] when the value is malformed, out of range, or not finite as required.