Expand description
Rejection response types.
Re-exports§
- pub use crate::extract::path::FailedToDeserializePathParams;
- pub use crate::extract::path::InvalidUtf8InPathParam;
Structs§
- FailedToDeserialize Form 
- Rejection type used if the Formextractor is unable to deserialize the form into the target type.
- FailedToDeserialize Form Body 
- Rejection type used if the Formextractor is unable to deserialize the form body into the target type.
- FailedToDeserialize Query String 
- Rejection type used if the Queryextractor is unable to deserialize the query string into the target type.
- InvalidForm Content Type 
- Rejection type for FormorRawFormused if theContent-Typeheader is missing or its value is notapplication/x-www-form-urlencoded.
- InvalidUtf8 
- Rejection type used when buffering the request into a Stringif the body doesn’t contain valid UTF-8.
- JsonData Error 
- Rejection type for Json.
- JsonSyntax Error 
- Rejection type for Json.
- LengthLimit Error 
- Encountered some other error when buffering the body.
- MatchedPath Missing 
- Rejection if no matched path could be found.
- MissingExtension 
- Rejection type for Extensionif an expected request extension was not found.
- MissingJson Content Type 
- Rejection type for Jsonused if theContent-Typeheader is missing.
- MissingPath 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.
- NestedPath Rejection 
- Rejection type for NestedPath.
- UnknownBody Error 
- Encountered an unknown error when buffering the body.
Enums§
- BytesRejection 
- Rejection used for Bytes.
- ExtensionRejection 
- Rejection used for Extension.
- FailedToBuffer Body 
- Rejection type for extractors that buffer the request body. Used if the request body cannot be buffered due to an error.
- FormRejection 
- Rejection used for Form.
- JsonRejection 
- Rejection used for Json.
- MatchedPath Rejection 
- Rejection used for MatchedPath.
- PathRejection 
- Rejection used for Path.
- QueryRejection 
- Rejection used for Query.
- RawFormRejection 
- Rejection used for RawForm.
- RawPathParams Rejection 
- Rejection used for RawPathParams.
- StringRejection 
- Rejection used for String.