pub type ValidatorFn = unsafe fn(PtrConst) -> Result<(), String>;
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.
Ok(())
Err(message)