[go: up one dir, main page]

Module garde::rules::ip

source ·
Expand description

IP validation.

#[derive(garde::Validate)]
struct Test {
    #[garde(ip)]
    v: String,
}

The entrypoint is the Ip trait. Implementing this trait for a type allows that type to be used with the #[garde(ip)] rule.

This trait has a blanket implementation for all T: AsRef<str>.

Enums

Traits

Functions