Full extractor responses.
This commit is contained in:
@@ -62,8 +62,8 @@ pub enum AuthHeaderError {
|
||||
#[error("missing header")]
|
||||
Missing,
|
||||
|
||||
#[error("invalid encoding")]
|
||||
NotAscii(#[source] ToStrError),
|
||||
#[error(transparent)]
|
||||
NotAscii(#[from] ToStrError),
|
||||
|
||||
#[error("malformed value")]
|
||||
MalformedValue,
|
||||
|
||||
@@ -24,7 +24,7 @@ where
|
||||
}
|
||||
|
||||
#[derive(Debug, thiserror::Error)]
|
||||
#[error("form error")]
|
||||
#[error(transparent)]
|
||||
pub struct FormError(#[from] axum::extract::rejection::FormRejection);
|
||||
|
||||
impl IntoResponse for FormError {
|
||||
|
||||
@@ -32,7 +32,7 @@ where
|
||||
}
|
||||
|
||||
#[derive(Debug, thiserror::Error)]
|
||||
#[error("json error")]
|
||||
#[error(transparent)]
|
||||
pub struct JsonError(#[from] axum::extract::rejection::JsonRejection);
|
||||
|
||||
impl IntoResponse for JsonError {
|
||||
|
||||
@@ -25,7 +25,7 @@ where
|
||||
}
|
||||
|
||||
#[derive(Debug, thiserror::Error)]
|
||||
#[error("path error")]
|
||||
#[error(transparent)]
|
||||
pub struct PathError(#[from] axum::extract::rejection::PathRejection);
|
||||
|
||||
impl IntoResponse for PathError {
|
||||
|
||||
@@ -25,7 +25,7 @@ where
|
||||
}
|
||||
|
||||
#[derive(Debug, thiserror::Error)]
|
||||
#[error("query error")]
|
||||
#[error(transparent)]
|
||||
pub struct QueryError(#[from] axum::extract::rejection::QueryRejection);
|
||||
|
||||
impl IntoResponse for QueryError {
|
||||
|
||||
Reference in New Issue
Block a user