Skip to main content

ComponentsExt

Trait ComponentsExt 

Source
pub trait ComponentsExt {
    // Required method
    fn add_schema(&mut self, name: String, schema: Schema);
}
Available on crate feature openapi only.
Expand description

Extension trait for Components to provide convenient methods

Required Methods§

Source

fn add_schema(&mut self, name: String, schema: Schema)

Add a schema to the components

Dyn Compatibility§

This trait is dyn compatible.

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

Implementors§