Skip to main content

RouteOpenApiExt

Trait RouteOpenApiExt 

Source
pub trait RouteOpenApiExt {
    // Required method
    fn to_openapi(&self, title: &str, version: &str) -> OpenApi;
}
Expand description

Route 的便捷 OpenAPI 构建扩展

Required Methods§

Source

fn to_openapi(&self, title: &str, version: &str) -> OpenApi

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementations on Foreign Types§

Source§

impl RouteOpenApiExt for Route

Source§

fn to_openapi(&self, title: &str, version: &str) -> OpenApi

Implementors§