Skip to main content

Validate

Derive Macro Validate 

Source
#[derive(Validate)]
{
    // Attributes available to this derive:
    #[validate]
    #[luxid]
}
Expand description

Derive form-request validation.

Synchronous rules (length, email, range, custom) run first; asynchronous ones (unique, exists) run afterwards against the request’s ambient database connection, skipping fields that already failed.