Skip to main content

validate_key

Function validate_key 

Source
pub fn validate_key(key: &str) -> Result<&'static str, String>
Expand description

Validate that a config key is known.

Returns the type descriptor on success, or a helpful error message with fuzzy suggestions on failure.

ยงErrors

Returns an error string if the key is not a known configuration key.