Expand description
Axum autoroute proc macros.
Macros§
- method_
router - Returns an
UtoipaMethodRouterfrom the name of an handler. - method_
routers - Returns an array of
UtoipaMethodRouterfrom a list of handlers name. - route_
info - Returns a
RouteInfofrom the name of an handler. - routes_
info - Returns an array of
RouteInfofrom a list of handlers name.
Attribute Macros§
- autoroute
- Macro to put on top of an axum handler function. It will be used to define several info about the handler (method, path, allowed responses) and will also extract others from the function signature.