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
use Validate;
Powerful procedural macros for skp-validator.
Provides the #[derive(Validate)] macro and associated attributes to enable declarative validation on your structs.
use skp_validator::Validate;
#[derive(Validate)]
struct User {
#[validate(required, length(min = 3))]
name: String,
}