Expand description
Rejection response types.
Re-exports§
pub use crate::extract::path::FailedToDeserializePathParams;
pub use crate::extract::path::InvalidUtf8InPathParam;
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 Query String - Rejection type used if the
Query
extractor is unable to deserialize the query string into the target type. - Failed
ToResolve Host - Rejection type used if the
Host
extractor is unable to resolve a host. - 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. - Json
Data Error json
- Rejection type for
Json
. - Json
Syntax Error json
- Rejection type for
Json
. - Length
Limit Error - Encountered some other error when buffering the body.
- Missing
Extension - Rejection type for
Extension
if an expected request extension was not found. - Missing
Json Content Type json
- 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
. - Host
Rejection - Rejection used for
Host
. - Json
Rejection json
- Rejection used for
Json
. - 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
.