Skip to main content

Module router

Module router 

Source
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.
RouterExt
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 the mount_handlers! macro.

Type Aliases§

Router
Re-export Axum’s Router type