poem_openapi

Trait ResponseContent

Source
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§

Source

fn media_types() -> Vec<MetaMediaType>

Returns the media types in this content.

Provided Methods§

Source

fn register(registry: &mut Registry)

Register the schema contained in this content to the registry.

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.

Implementors§