Trait poem_openapi::payload::Payload
source · [−]pub trait Payload: Send {
const CONTENT_TYPE: &'static str;
fn schema_ref() -> MetaSchemaRef;
fn register(registry: &mut Registry) { ... }
}
Expand description
Represents a payload type.
Associated Constants
const CONTENT_TYPE: &'static str
const CONTENT_TYPE: &'static str
The content type of this payload.
Required methods
fn schema_ref() -> MetaSchemaRef
fn schema_ref() -> MetaSchemaRef
Gets schema reference of this payload.