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

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

    fn schema_ref() -> MetaSchemaRef;

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

Represents a payload type.

Associated Constants

The content type of this payload.

If it is true, it means that this payload is required.

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