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
error: the `pattern` rule needs the `regex` feature of `annotated`
 --> tests/ui/without-regex/pattern.rs:5:16
  |
5 |     #[validate(pattern = r"^\d{5}$")]
  |                ^^^^^^^