From 978ae6335862b264b4368e01a52177d98c42b2d9 Mon Sep 17 00:00:00 2001 From: Liigo Zhuang Date: Mon, 19 Dec 2022 15:44:03 +0800 Subject: [PATCH] Update extract.md (#1653) --- axum/src/docs/extract.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/axum/src/docs/extract.md b/axum/src/docs/extract.md index e002a8b7..fcf92324 100644 --- a/axum/src/docs/extract.md +++ b/axum/src/docs/extract.md @@ -20,7 +20,8 @@ Types and traits for extracting data from requests. A handler function is an async function that takes any number of "extractors" as arguments. An extractor is a type that implements -[`FromRequest`](crate::extract::FromRequest). +[`FromRequest`](crate::extract::FromRequest) +or [`FromRequestParts`](crate::extract::FromRequestParts). For example, [`Json`] is an extractor that consumes the request body and deserializes it as JSON into some target type: