pub trait ValidateNested<'v_a> {
    type Args;

    // Required method
    fn validate_nested(
        &self,
        field_name: &'static str,
        args: Self::Args
    ) -> Result<(), ValidationErrors>;
}

Required Associated Types§

Required Methods§

source

fn validate_nested( &self, field_name: &'static str, args: Self::Args ) -> Result<(), ValidationErrors>

Implementations on Foreign Types§

source§

impl<'v_a, K, V, S, U> ValidateNested<'v_a> for HashMap<K, V, S>
where V: ValidateArgs<'v_a, Args = U> + ValidateNested<'v_a, Args = U>, U: Clone,

§

type Args = U

source§

fn validate_nested( &self, field_name: &'static str, args: Self::Args ) -> Result<(), ValidationErrors>

source§

impl<'v_a, T, S, U> ValidateNested<'v_a> for HashSet<T, S>
where T: ValidateArgs<'v_a, Args = U> + ValidateNested<'v_a, Args = U>, U: Clone,

§

type Args = U

source§

fn validate_nested( &self, field_name: &'static str, args: Self::Args ) -> Result<(), ValidationErrors>

source§

impl<'v_a, T, U> ValidateNested<'v_a> for &[T]
where T: ValidateArgs<'v_a, Args = U> + ValidateNested<'v_a, Args = U>, U: Clone,

§

type Args = U

source§

fn validate_nested( &self, field_name: &'static str, args: Self::Args ) -> Result<(), ValidationErrors>

source§

impl<'v_a, T, U> ValidateNested<'v_a> for Option<T>
where T: ValidateNested<'v_a, Args = U>,

§

type Args = U

source§

fn validate_nested( &self, field_name: &'static str, args: Self::Args ) -> Result<(), ValidationErrors>

source§

impl<'v_a, T, U> ValidateNested<'v_a> for &T
where T: ValidateNested<'v_a, Args = U>,

§

type Args = U

source§

fn validate_nested( &self, field_name: &'static str, args: Self::Args ) -> Result<(), ValidationErrors>

source§

impl<'v_a, T, U> ValidateNested<'v_a> for Vec<T>
where T: ValidateArgs<'v_a, Args = U> + ValidateNested<'v_a, Args = U>, U: Clone,

§

type Args = U

source§

fn validate_nested( &self, field_name: &'static str, args: Self::Args ) -> Result<(), ValidationErrors>

source§

impl<'v_a, T, const N: usize, U> ValidateNested<'v_a> for [T; N]
where T: ValidateArgs<'v_a, Args = U> + ValidateNested<'v_a, Args = U>, U: Clone,

§

type Args = U

source§

fn validate_nested( &self, field_name: &'static str, args: Self::Args ) -> Result<(), ValidationErrors>

Implementors§