Module inner

Module inner 

Source
Expand description

Inner type validation.

#[derive(garde::Validate)]
struct Test {
    #[garde(inner(length(min=1)))]
    v: Vec<String>,
}

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

Traits§

Inner

Functions§

apply