pub type ValidatorFn = Arc<dyn Fn(&str, &Value) -> Result<(), BaseError> + Send + Sync>;
自定义验证函数类型
接收字段名和字段值,返回验证结果
pub struct ValidatorFn { /* private fields */ }