pub fn email() -> impl Fn(&str) -> Result<(), String>Expand description
Accept a plausibly-formed email address.
This is a deliberately small structural check — exactly one @, a
non-empty local part, a non-empty domain that contains at least one .
with non-empty labels on both sides, and no whitespace. It is not a
full RFC 5322 parser; pass a stricter regex if you need one.
§Example
let field = FormField::new("Email").validate(validators::email());