pub trait ResponseContent {
// Required method
fn media_types() -> Vec<MetaMediaType>;
// Provided method
fn register(registry: &mut Registry) { ... }
}
Expand description
Represents an OpenAPI response content object.
Required Methods§
Sourcefn media_types() -> Vec<MetaMediaType>
fn media_types() -> Vec<MetaMediaType>
Returns the media types in this content.
Provided Methods§
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.