#[non_exhaustive]
pub enum JsonRejection {
InvalidJsonBody(InvalidJsonBody),
MissingJsonContentType(MissingJsonContentType),
BytesRejection(BytesRejection),
HeadersAlreadyExtracted(HeadersAlreadyExtracted),
}
This is supported on crate feature
json
only.Expand description
Variants (Non-exhaustive)
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
InvalidJsonBody(InvalidJsonBody)
Tuple Fields
MissingJsonContentType(MissingJsonContentType)
Tuple Fields
BytesRejection(BytesRejection)
Tuple Fields
HeadersAlreadyExtracted(HeadersAlreadyExtracted)
Tuple Fields
Trait Implementations
Performs the conversion.
Performs the conversion.
Performs the conversion.
Performs the conversion.
Create a response.
Auto Trait Implementations
impl !RefUnwindSafe for JsonRejection
impl Send for JsonRejection
impl Sync for JsonRejection
impl Unpin for JsonRejection
impl !UnwindSafe for JsonRejection
Blanket Implementations
Mutably borrows from an owned value. Read more
Create a new Policy
that returns Action::Follow
only if self
and other
return
Action::Follow
. 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