Expand description
Routing debug output component.
Provides detailed visual display of the routing decision process, showing which routes were considered, why matches succeeded or failed, parameter extraction results, and middleware that will be applied.
§Feature Gating
This module is designed for debug output. In production, routing debug should only be enabled when explicitly requested.
ⓘ
if config.debug_routing {
let debug = RoutingDebug::new(OutputMode::Rich);
println!("{}", debug.format(&routing_result));
}Structs§
- Candidate
Route - Information about a candidate route that was considered.
- Extracted
Params - Extracted path parameters.
- Middleware
Info - Information about middleware that will be applied.
- Routing
Debug - Routing debug output formatter.
- Routing
Debug Info - Complete routing debug information.
Enums§
- Match
Result - Result of a route matching attempt.