Skip to main content

validate

Function validate 

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

Validate value against rule and convert it to its typed form. The error is the spec’s error text.