Skip to main content

custom

Function custom 

Source
pub fn custom<F>(f: F) -> CustomValidator
where F: Fn(&str, Option<&Value>, &mut Errors) + Send + Sync + 'static,
Expand description

Creates a custom validator from a caller-provided function.