Skip to main content

Crate rust_webx_macros

Crate rust_webx_macros 

Source

Attribute Macros§

authorize
Declares authorization requirements on a route.
claims
Marks a request struct as carrying authentication claims.
delete
Shortcut: registers an IRequest impl at DELETE /path.
endpoint
Full form: marks an IRequest impl with HTTP method and route path.
get
Shortcut: registers an IRequest impl at GET /path.
handler
Auto-registers an IRequestHandler implementation at compile time via inventory.
post
Shortcut: registers an IRequest impl at POST /path.
put
Shortcut: registers an IRequest impl at PUT /path.

Derive Macros§

WebxRequestMeta
Registers OpenAPI parameter metadata from #[from_query] / #[from_route] / #[from_body] fields.