pub trait HttpMount:
Send
+ Sync
+ 'static {
// Required methods
fn http_mount_router(self: Arc<Self>) -> Router;
fn http_mount_openapi_paths() -> Vec<HttpMountPathInfo>
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<HttpMountPathInfo>where
Self: Sized,
fn http_mount_openapi_paths() -> Vec<HttpMountPathInfo>where
Self: Sized,
Get OpenAPI path definitions for this mount.