[][src]Trait validators::traits::ValidateLength

pub trait ValidateLength<T: CollectionLength> {
    type Error;
    type Output;
    fn parse_collection(v: T) -> Result<Self::Output, Self::Error>;
fn validate_collection(v: &T) -> Result<(), Self::Error>; }

Validate the length of collections.

Associated Types

type Error

type Output

Loading content...

Required methods

fn parse_collection(v: T) -> Result<Self::Output, Self::Error>

fn validate_collection(v: &T) -> Result<(), Self::Error>

Loading content...

Implementors

Loading content...