mirror of
https://github.com/tokio-rs/axum.git
synced 2026-08-29 00:00:18 +02:00
JsonDeserializer extractor for zero-copy deserialization (#2431)
This commit is contained in:
@@ -10,6 +10,9 @@ mod form;
|
||||
#[cfg(feature = "cookie")]
|
||||
pub mod cookie;
|
||||
|
||||
#[cfg(feature = "json-deserializer")]
|
||||
mod json_deserializer;
|
||||
|
||||
#[cfg(feature = "query")]
|
||||
mod query;
|
||||
|
||||
@@ -36,6 +39,12 @@ pub use self::query::{OptionalQuery, OptionalQueryRejection, Query, QueryRejecti
|
||||
#[cfg(feature = "multipart")]
|
||||
pub use self::multipart::Multipart;
|
||||
|
||||
#[cfg(feature = "json-deserializer")]
|
||||
pub use self::json_deserializer::{
|
||||
JsonDataError, JsonDeserializer, JsonDeserializerRejection, JsonSyntaxError,
|
||||
MissingJsonContentType,
|
||||
};
|
||||
|
||||
#[cfg(feature = "json-lines")]
|
||||
#[doc(no_inline)]
|
||||
pub use crate::json_lines::JsonLines;
|
||||
|
||||
Reference in New Issue
Block a user