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

    fn schema_ref() -> MetaSchemaRef;

    fn check_content_type(content_type: &str) -> bool { ... }
    fn register(registry: &mut Registry) { ... }
}
Expand description

Represents a payload type.

Required Associated Constants

The content type of this payload.

Required Methods

Gets schema reference of this payload.

Provided Methods

Check the content type of incoming request

Register the schema contained in this payload to the registry.

Implementors