mirror of
https://github.com/tokio-rs/axum.git
synced 2025-03-13 19:27:53 +01:00
Make extractor field public in example
This commit is contained in:
parent
789f51ba1a
commit
79f6aabd02
1 changed files with 1 additions and 1 deletions
|
@ -20,7 +20,7 @@ pub async fn handler(Json(value): Json<Value>) -> impl IntoResponse {
|
|||
}
|
||||
|
||||
// We define our own `Json` extractor that customizes the error from `axum::Json`
|
||||
pub struct Json<T>(T);
|
||||
pub struct Json<T>(pub T);
|
||||
|
||||
#[async_trait]
|
||||
impl<S, B, T> FromRequest<S, B> for Json<T>
|
||||
|
|
Loading…
Add table
Reference in a new issue