Skip to main content

OpenApiDocExt

Trait OpenApiDocExt 

Source
pub trait OpenApiDocExt {
    // Required method
    fn doc(&mut self, doc: Doc) -> &mut Self;
}
Expand description

Attach Doc metadata to the last registered HTTP route.

Required Methods§

Source

fn doc(&mut self, doc: Doc) -> &mut Self

Dyn Compatibility§

This trait is not dyn compatible.

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

Implementations on Foreign Types§

Source§

impl OpenApiDocExt for App

Source§

fn doc(&mut self, doc: Doc) -> &mut Self

Source§

impl OpenApiDocExt for Router

Source§

fn doc(&mut self, doc: Doc) -> &mut Self

Implementors§