pub trait SyncRule: Send + Sync {
// Required method
fn validate(&self, field_name: &str, value: &Value) -> Result<(), String>;
}Expand description
A synchronous custom validation rule, dispatched by name via the
"purifyAs": "<rule_name>" field metadata key.
Register instances on a Purifier with Purifier::register_rule.