mirror of
https://github.com/tokio-rs/axum.git
synced 2025-09-27 04:50:31 +00:00
Make extractor field public in example
This commit is contained in:
parent
789f51ba1a
commit
79f6aabd02
@ -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…
x
Reference in New Issue
Block a user