OptionalRule

A type alias for validation rules that operate on optional (nullable) values.

Optional rules are validation functions that take a nullable value and return a ValidationResult indicating whether the validation passed or failed.