Skip to main content

validate_value

Function validate_value 

Source
pub fn validate_value(field: &Field, value: &str) -> Option<String>
Expand description

Server-side validation of one submitted value against a field’s rules. Returns an error message, or None when valid. Empty values pass here — “required” is enforced separately by the submit handler.