pub trait OpenApiSchema {
// Required methods
fn openapi_schema() -> Schema;
fn schema_name() -> String;
}Expand description
Trait for types that can generate OpenAPI schemas
Required Methods§
Sourcefn openapi_schema() -> Schema
fn openapi_schema() -> Schema
Generate OpenAPI schema for this type
Sourcefn schema_name() -> String
fn schema_name() -> String
Get the schema name/title
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.