Expand description
AxumNamedRouter
This is a router that wraps the Router
from axum
and automatically adds an Extension<Routes>
layer.
Check out NamedRouter
and Routes
for more information on how this works
Structsยง
- Named
Router - Wraps the axum
Router
with an implementation that builds a mapping of route names to paths. - Routes
- A mapping of all route names to their paths.
This can be used in requests as it implements
FromRequest
It is also based on anArc
internally so it can be cloned across requests efficiently.