pub type Rule = Box<dyn Fn(&str, &FormValues) -> Option<String> + 'static>;Expand description
A form-aware validator: sees the field’s value and the whole form.
Plain Validators lift into rules automatically via Form::rule.
Aliased Type§
pub struct Rule(/* private fields */);