1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
//! Ergonomic extractors that eliminate boilerplate.
//!
//! These extractors wrap the standard Actix extractors and automatically
//! unwrap the inner value, so you never need to call `.into_inner()`.
//!
//! # Example
//!
//! ```no_run
//! use actix_tower::prelude::*;
//! use serde::Deserialize;
//!
//! #[derive(Deserialize)]
//! struct CreateUser { name: String, email: String }
//!
//! async fn handler(AutoJson(user): AutoJson<CreateUser>) -> impl Responder {
//! // user is CreateUser, not Json<CreateUser>
//! HttpResponse::Ok().json(serde_json::json!({"id": 1, "name": user.name}))
//! }
//! ```
pub use AutoData;
pub use AutoForm;
pub use AutoJson;
pub use AutoMultipart;
pub use AutoPath;
pub use AutoQuery;
pub use AutoState;
pub use ;