Module ip

Module 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: garde::rules::AsStr.

Enums§

IpKind

Traits§

Ip

Functions§

apply