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
Formextractor is unable to deserialize the form into the target type. - Failed
ToDeserialize Form Body - Rejection type used if the
Formextractor is unable to deserialize the form body into the target type. - Failed
ToDeserialize Query String - Rejection type used if the
Queryextractor is unable to deserialize the query string into the target type. - Failed
ToResolve Host - Rejection type used if the
Hostextractor is unable to resolve a host. - Invalid
Form Content Type - Rejection type for
FormorRawFormused if theContent-Typeheader is missing or its value is notapplication/x-www-form-urlencoded. - Invalid
Utf8 - Rejection type used when buffering the request into a
Stringif the body doesn’t contain 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
Extensionif an expected request extension was not found. - Missing
Json Content Type - Rejection type for
Jsonused if theContent-Typeheader 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<_>.Pathmust 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 - 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.