pub trait ResponseContent {
    // Required method
    fn media_types() -> Vec<MetaMediaType>;

    // Provided method
    fn register(registry: &mut Registry) { ... }
}
Expand description

Represents a 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.

Implementors§