Expand description
Router utilities for RustAPI framework
Provides a builder API for creating routers without directly exposing Axum types. Users interact through the router module rather than importing Router directly.
Traits§
- ApiRoute
- Extension trait for registering routes using the macro-generated
(&'static str, &'static str)route info tuple. - Router
Ext - Extension trait to add a
finish()method to Router
Functions§
- build
- Create a new router builder
- method_
filter_ from_ str - Maps an HTTP method string (from a route annotation constant) to an Axum
MethodFilter. Used internally by themount_handlers!macro.
Type Aliases§
- Router
- Re-export Axum’s Router type