Skip to main content

OpenApiSource

Trait OpenApiSource 

Source
pub trait OpenApiSource {
    // Required method
    fn openapi_json(&self) -> String;
}
Expand description

Something an OpenAPI document can be read from.

Required Methods§

Source

fn openapi_json(&self) -> String

The document’s JSON text.

Dyn Compatibility§

This trait is dyn compatible.

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

Implementations on Foreign Types§

Source§

impl OpenApiSource for String

Source§

impl OpenApiSource for str

Implementors§