skp-validator-derive 0.1.0

Derive macro for skp-validator
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
# skp-validator-derive

Powerful procedural macros for `skp-validator`.

Provides the `#[derive(Validate)]` macro and associated attributes to enable declarative validation on your structs.

## Usage

```rust
use skp_validator::Validate;

#[derive(Validate)]
struct User {
    #[validate(required, length(min = 3))]
    name: String,
}
```