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提供文档收集能力。