pub type Validator = fn(&str) -> bool;
A path-param validator: returns whether the value satisfies the constraint.