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§
Sourcefn add_schema(&mut self, name: String, schema: Schema)
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".