pub trait RouteDocumentation {
// Required method
fn collect_openapi_paths(&self, base_path: &str) -> Vec<(String, PathItem)>;
// Provided method
fn generate_openapi_doc(
&self,
title: &str,
version: &str,
description: Option<&str>,
) -> OpenApiDoc { ... }
}Expand description
路由文档收集trait
为Silent的Route提供文档收集能力。
Required Methods§
Provided Methods§
Sourcefn generate_openapi_doc(
&self,
title: &str,
version: &str,
description: Option<&str>,
) -> OpenApiDoc
fn generate_openapi_doc( &self, title: &str, version: &str, description: Option<&str>, ) -> OpenApiDoc
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".