Trait poem_openapi::payload::Payload[][src]

pub trait Payload {
    const CONTENT_TYPE: &'static str;

    fn schema_ref() -> MetaSchemaRef;

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

Represents a payload type.

Associated Constants

The content type of this payload.

Required methods

Gets schema reference of this payload.

Provided methods

Register the schema contained in this payload to the registry.

Implementations on Foreign Types

Implementors