Expand description
Rejection response types.
Structs§
- Failed
ToDeserialize Form - Rejection type used if the
Form
extractor is unable to deserialize the form into the target type. - Failed
ToDeserialize Form Body - Rejection type used if the
Form
extractor is unable to deserialize the form body into the target type. - Failed
ToDeserialize Path Params - Rejection type for
Path
if the captured routes params couldn’t be deserialized into the expected type. - Failed
ToDeserialize Query String - Rejection type used if the
Query
extractor is unable to deserialize the query string into the target type. - Invalid
Form Content Type - Rejection type for
Form
orRawForm
used if theContent-Type
header is missing or its value is notapplication/x-www-form-urlencoded
. - Invalid
Utf8 - Rejection type used when buffering the request into a
String
if the body doesn’t contain valid UTF-8. - Invalid
Utf8 InPath Param - Rejection used by
RawPathParams
if a parameter contained text that, once percent decoded, wasn’t valid UTF-8. - Json
Data Error - Rejection type for
Json
. - Json
Syntax Error - Rejection type for
Json
. - Length
Limit Error - Encountered some other error when buffering the body.
- Matched
Path Missing - Rejection if no matched path could be found.
- Missing
Extension - Rejection type for
Extension
if an expected request extension was not found. - Missing
Json Content Type - Rejection type for
Json
used if theContent-Type
header is missing. - Missing
Path Params - Rejection type used if axum’s internal representation of path parameters
is missing. This is commonly caused by extracting
Request<_>
.Path
must be extracted first. - Nested
Path Rejection - Rejection type for
NestedPath
. - Unknown
Body Error - Encountered an unknown error when buffering the body.
Enums§
- Bytes
Rejection - Rejection used for
Bytes
. - Extension
Rejection - Rejection used for
Extension
. - Failed
ToBuffer Body - Rejection type for extractors that buffer the request body. Used if the request body cannot be buffered due to an error.
- Form
Rejection - Rejection used for
Form
. - Json
Rejection - Rejection used for
Json
. - Matched
Path Rejection - Rejection used for
MatchedPath
. - Path
Rejection - Rejection used for
Path
. - Query
Rejection - Rejection used for
Query
. - RawForm
Rejection - Rejection used for
RawForm
. - RawPath
Params Rejection - Rejection used for
RawPathParams
. - String
Rejection - Rejection used for
String
.