in_list

Function in_list 

Source
pub fn in_list(
    allowed: Vec<String>,
) -> impl Fn(&str, &Value) -> Result<(), String> + Send + Sync + Clone
Expand description

Validator: value must be in allowed list