Enum poem_openapi::error::ContentTypeError
source · [−]pub enum ContentTypeError {
NotSupported {
content_type: String,
},
ExpectContentType,
}
Expand description
Content type error.
Variants
NotSupported
Fields
content_type: String
The Content-Type
header requested by the client.
Not supported.
ExpectContentType
Expect content type header.
Trait Implementations
The status code of this error.
Auto Trait Implementations
impl RefUnwindSafe for ContentTypeError
impl Send for ContentTypeError
impl Sync for ContentTypeError
impl Unpin for ContentTypeError
impl UnwindSafe for ContentTypeError
Blanket Implementations
Mutably borrows from an owned value. Read more
pub fn vzip(self) -> V
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more