Expand description
Results of the validation rules declared in a schema (range, len, finite, known,
check(name)).
Validation is separate from verify: verify checks that bytes form a well-formed
message, while validation checks that its values follow the schema’s rules. Generated code
exposes it as XVerified::validate(&checks) and XW::to_bytes_validated. Reading never
runs it implicitly, so data written under older rules stays readable.
Structs§
- Invalid
- A value that breaks a rule of the schema.
Enums§
- Rule
- The rule a value broke.
- Validate
Error - The error of
validateandto_bytes_validated: a rule was broken, or the message could not be read or written.