annotated 0.4.0

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
12
13
14
15
16
17
error: `nested` takes no arguments
  --> tests/ui/nested_with_arguments.rs:11:16
   |
11 |     #[validate(nested(message = "must be a valid address"))]
   |                ^^^^^^

error: `nested` takes no arguments
  --> tests/ui/nested_with_arguments.rs:17:16
   |
17 |     #[validate(nested = true)]
   |                ^^^^^^

error: `nested` takes no arguments
  --> tests/ui/nested_with_arguments.rs:23:16
   |
23 |     #[validate(nested(depth = 2))]
   |                ^^^^^^