pub fn custom<F>(f: F) -> CustomValidatorwhere F: Fn(&str, Option<&Value>, &mut Errors) + Send + Sync + 'static,
Creates a custom validator from a caller-provided function.