Skip to main content

parse_json_flag

Function parse_json_flag 

Source
fn parse_json_flag(config: &HashMap<String, Value>) -> Result<bool, String>
Expand description

Parses the optional json flag, which defaults to false. A present but wrong-typed value is a config error, the same treatment by and ttl_seconds already get – silently ignoring, say, json: "true" would be the only config key in this node’s set that fails that way.