Trait ValidateNested

Source
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,

Source§

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,

Source§

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,

Source§

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>,

Source§

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>,

Source§

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,

Source§

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,

Source§

type Args = U

Source§

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

Implementors§