Full extractor responses.

This commit is contained in:
2026-10-11 08:45:00 +02:00
parent e0eb259182
commit 46a127fbf1
6 changed files with 24 additions and 24 deletions
+2 -2
View File
@@ -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,
+1 -1
View File
@@ -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 {
+1 -1
View File
@@ -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 {
+1 -1
View File
@@ -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 {
+1 -1
View File
@@ -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 {