Skip to main content

int_key

Function int_key 

Source
fn int_key(
    config: &HashMap<String, Value>,
    key: &str,
) -> Result<Option<u64>, String>
Expand description

Reads key from the config map as a non-negative integer. None (and JSON null) mean “absent, use the default”; any other non-integer value is an error.