[go: up one dir, main page]

Module garde::rules::email

source ·
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>.

Enums

Traits

Functions