restore the extract function for server functions (#4849)

* restore the extract function for server functions

* fix compilation

* Move most fields under one shared lock

* fix typo

* fix clippy

* restore somewhat misleading FromRequest bound

* remove unused import

* fix doc links
This commit is contained in:
Evan Almloff authored and GitHub committed 2025-10-27 15:54:24 -07:00
1 parent 5786c9396f
commit e656bace5c
8 files changed
+169 -52

No files matched your search

+1 -1
View File
@@ -21,7 +21,7 @@ use serde::{de::DeserializeOwned, Serialize};
/// *last* if there are multiple extractors in a handler.
/// See ["the order of extractors"][order-of-extractors]
///
/// [order-of-extractors]: crate::extract#the-order-of-extractors
/// [order-of-extractors]: mod@crate::extract#the-order-of-extractors
#[must_use]
pub struct Cbor<T>(pub T);
+1 -1
View File
@@ -32,7 +32,7 @@ use axum::extract::multipart::{Field, MultipartError};
/// `Multipart` extractor must be *last* if there are multiple extractors in a handler.
/// See ["the order of extractors"][order-of-extractors]
///
/// [order-of-extractors]: crate::extract#the-order-of-extractors
/// [order-of-extractors]: mod@crate::extract#the-order-of-extractors
///
/// # Large Files
///
+1 -1
View File
@@ -23,7 +23,7 @@ use std::future::Future;
/// *last* if there are multiple extractors in a handler.
/// See ["the order of extractors"][order-of-extractors]
///
/// [order-of-extractors]: crate::extract#the-order-of-extractors
/// [order-of-extractors]: mod@crate::extract#the-order-of-extractors
pub struct Postcard<T>(pub T);
#[derive(thiserror::Error, Debug)]