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 and non-WebAssembly 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

Implementors§