Expand description
Email validation.
#[derive(garde::Validate)]
struct Test {
#[garde(email)]
v: String,
}The entrypoint is the Email trait. Implementing this trait for a type allows that type to be used with the #[garde(email)] rule.
This trait has a blanket implementation for all T: AsRef<str>.