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

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

Loading content...

Required methods

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

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

Loading content...

Implementors

Loading content...