Module builder

Module builder 

Source
Expand description

Axum router building from OpenAPI specifications

This module handles the creation of Axum routers from OpenAPI specifications, including route registration and middleware integration.

Structs§

RouterBuilder
Router builder for creating complex routing configurations

Functions§

build_router_from_spec
Build an Axum router from an OpenAPI specification
build_router_from_spec_with_options
Build an Axum router from an OpenAPI specification with custom options
create_route_handler
Helper function to create route handlers
create_router_with_error_handling
Create a router with error handling middleware
create_router_with_logging
Create a router with logging middleware
create_router_with_validation
Create a router with validation middleware
error_handler
Middleware function to handle errors and panics
merge_routers
Merge multiple routers into a single router
request_logger
Middleware function to log incoming requests
validate_request
Middleware function to validate requests against OpenAPI spec