Skip to main content

Crate axum_autoroute_macros

Crate axum_autoroute_macros 

Source
Expand description

Axum autoroute proc macros.

Macros§

method_router
Returns an UtoipaMethodRouter from the name of an handler.
method_routers
Returns an array of UtoipaMethodRouter from a list of handlers name.
route_info
Returns a RouteInfo from the name of an handler.
routes_info
Returns an array of RouteInfo from 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.