Skip to main content

validate

Function validate 

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

Validate a config key and value combination.

§Errors

Returns an error string if the key is unknown or the value is invalid.