Skip to main content

ValidatorFn

Type Alias ValidatorFn 

Source
pub type ValidatorFn = Arc<dyn Fn(&str, &Value) -> Result<(), BaseError> + Send + Sync>;
Expand description

自定义验证函数类型

接收字段名和字段值,返回验证结果

Aliased Type§

pub struct ValidatorFn { /* private fields */ }