annotated 0.3.1

Declarative validation for structs and enums, like data annotations, that works with serde: every broken rule and missing field in one error
Documentation
1
2
3
4
5
6
7
8
9
10
11
error: `custom` on a struct takes one function checking the struct, then optionally `field = ...` and `message = ...`: `custom(check, field = name)`
 --> tests/ui/struct_level_custom_without_a_function.rs:4:12
  |
4 | #[validate(custom)]
  |            ^^^^^^

error: `custom` on a struct takes one function checking the struct, then optionally `field = ...` and `message = ...`: `custom(check, field = name)`
  --> tests/ui/struct_level_custom_without_a_function.rs:11:12
   |
11 | #[validate(custom(field = repeated_pin))]
   |            ^^^^^^