pub trait HttpMount:
Send
+ Sync
+ 'static {
// Required methods
fn http_mount_router(self: Arc<Self>) -> Router;
fn http_mount_openapi_paths() -> Vec<OpenApiPath>
where Self: Sized;
}Expand description
Trait for types that can be mounted as HTTP route groups.
Implemented automatically by #[http] on an impl block. Allows nested
composition: a parent HTTP server can mount a child’s routes under a path prefix.
Required Methods§
Sourcefn http_mount_router(self: Arc<Self>) -> Router
fn http_mount_router(self: Arc<Self>) -> Router
Build an axum Router for this mount’s routes.
Sourcefn http_mount_openapi_paths() -> Vec<OpenApiPath>where
Self: Sized,
fn http_mount_openapi_paths() -> Vec<OpenApiPath>where
Self: Sized,
Get full OpenAPI path definitions for this mount (including any nested mounts).
Paths are relative to the mount point. The parent prefixes them when composing.