pub fn validate_form(form: &mut FormConfig)Expand description
Walk the form’s fields and apply the basic validation rules:
- Required: empty value on a
requiredfield →"This field is required". - Email: non-empty
Emailvalue missing@→"Invalid email address". - Number: non-empty
Numbervalue that doesn’t parse asf64→"Must be a valid number".
The first failing rule per field wins; the function never panics or unwraps. Empty optional fields skip the type-specific checks.