required

Function required 

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

Validator: field is required (not null)