Crate validify_derive

Source

Macros§

schema_err
Designed to be used with the [schema_validation] macro. Used for ergonomic custom error handling.

Attribute Macros§

schema_validation
A shortcut for ergonomic error creation in custom schema validaton functions.

Derive Macros§

Payload
Generates a struct with the same structure of the implementing struct with all its fields as options. This can only be used on struct that implement Validify. Any nested structs must also contain their corresponding payloads.
Validate
Enables the use of #[validate] attributes on struct/enum fields and implements the Validate trait based on the provided attributes.
Validify
Implements Validate and Modify in one trait.