Function accord::validators::either [] [src]

pub fn either<T: 'static>(values: Vec<T>) -> Box<Fn(&T) -> ValidatorResult> where
    T: PartialEq + Display + Clone

Enforce that T equals any of the values in values.