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§
Sourcefn add_schema(&mut self, name: String, schema: Schema)
fn add_schema(&mut self, name: String, schema: Schema)
Add a schema to the components