ObjectRule
A type alias for validation rules that operate on any object type.
Object rules are validation functions that take a value of any type and return a ValidationResult indicating whether the validation passed or failed. This is the most generic form of validation rule.