Attribute Macro validate

Source
#[validate]
Expand description

Custom attribute macro for field validation in structs.

This procedural macro attribute is designed to be applied to structs, enabling custom validation for their fields. When the validate method is called on an instance of the decorated struct, it triggers the specified custom validation functions for each annotated field.