pub type ValidatorFn = unsafe fn(value: PtrConst) -> Result<(), String>;Expand description
A function that validates a field value. Takes a type-erased pointer and returns
Ok(()) if valid, or Err(message) with a description of the validation failure.