Skip to main content

Crate protovalidate_buffa_macros

Crate protovalidate_buffa_macros 

Source
Expand description

#[auto_validate] โ€” inserts req.validate()? at the top of every service handler method in an impl block whose request parameter is an OwnedView<_>. Single-site safety net: add it once to the service impl and every present-and-future handler is validated on entry.

Non-handler async fns inside the same impl block are left alone (they lack an OwnedView<_> parameter, so the macro skips them).

Attribute Macrosยง

auto_validate