Expand description
Constraint validation for DTOs and commands.
Structs§
- Constraint
Violation List - Ordered list of
Violations. - Length
- Enforces a string length range (inclusive).
- Messenger
Validate Hook - Maps message names to typed
Validatablepayloads and rejects on violations. - NotBlank
- Rejects empty or whitespace-only strings.
- Range
- Enforces an inclusive numeric range for a parsed
i64. - Recursive
Validator - Default validator that applies each constraint in order.
- Violation
- One failed constraint on a property path.
Enums§
- Validator
Error - Failure while running constraints.
Traits§
- Constraint
- A rule that may append violations for a value.
- Validatable
- Object that can validate itself through a
Validator. - Validator
- Runs constraints and returns a violation list.