Skip to main content

auto_validate

Attribute Macro auto_validate 

Source
#[auto_validate]
Expand description

#[auto_validate] — attribute macro applied to a service impl block that inserts req.validate()? at the top of every handler method. Guarantees protovalidate runs for every RPC without relying on per-handler discipline.