Trait darpi::request::FromRequestBody [−][src]
Required methods
#[must_use]pub fn extract<'life0, 'async_trait>(
headers: &'life0 HeaderMap<HeaderValue>,
b: Body
) -> Pin<Box<dyn Future<Output = Result<T, E>> + 'async_trait + Send, Global>> where
'life0: 'async_trait,
[src]
headers: &'life0 HeaderMap<HeaderValue>,
b: Body
) -> Pin<Box<dyn Future<Output = Result<T, E>> + 'async_trait + Send, Global>> where
'life0: 'async_trait,
Provided methods
#[must_use]pub fn assert_content_type<'life0, 'async_trait>(
_content_type: Option<&'life0 HeaderValue>
) -> Pin<Box<dyn Future<Output = Result<(), E>> + 'async_trait + Send, Global>> where
'life0: 'async_trait,
[src]
_content_type: Option<&'life0 HeaderValue>
) -> Pin<Box<dyn Future<Output = Result<(), E>> + 'async_trait + Send, Global>> where
'life0: 'async_trait,
Implementors
impl<T> FromRequestBody<Json<T>, JsonErr> for Json<T> where
T: DeserializeOwned + 'static,
[src]
T: DeserializeOwned + 'static,
pub fn assert_content_type<'life0, 'async_trait>(
content_type: Option<&'life0 HeaderValue>
) -> Pin<Box<dyn Future<Output = Result<(), JsonErr>> + 'async_trait + Send, Global>> where
'life0: 'async_trait,
[src]
content_type: Option<&'life0 HeaderValue>
) -> Pin<Box<dyn Future<Output = Result<(), JsonErr>> + 'async_trait + Send, Global>> where
'life0: 'async_trait,
pub fn extract<'life0, 'async_trait>(
__arg0: &'life0 HeaderMap<HeaderValue>,
b: Body
) -> Pin<Box<dyn Future<Output = Result<Json<T>, JsonErr>> + 'async_trait + Send, Global>> where
'life0: 'async_trait,
Json<T>: 'async_trait,
[src]
__arg0: &'life0 HeaderMap<HeaderValue>,
b: Body
) -> Pin<Box<dyn Future<Output = Result<Json<T>, JsonErr>> + 'async_trait + Send, Global>> where
'life0: 'async_trait,
Json<T>: 'async_trait,
impl<T> FromRequestBody<Xml<T>, XmlErr> for Xml<T> where
T: DeserializeOwned + 'static,
[src]
T: DeserializeOwned + 'static,
pub fn assert_content_type<'life0, 'async_trait>(
content_type: Option<&'life0 HeaderValue>
) -> Pin<Box<dyn Future<Output = Result<(), XmlErr>> + 'async_trait + Send, Global>> where
'life0: 'async_trait,
[src]
content_type: Option<&'life0 HeaderValue>
) -> Pin<Box<dyn Future<Output = Result<(), XmlErr>> + 'async_trait + Send, Global>> where
'life0: 'async_trait,
pub fn extract<'life0, 'async_trait>(
__arg0: &'life0 HeaderMap<HeaderValue>,
b: Body
) -> Pin<Box<dyn Future<Output = Result<Xml<T>, XmlErr>> + 'async_trait + Send, Global>> where
'life0: 'async_trait,
Xml<T>: 'async_trait,
[src]
__arg0: &'life0 HeaderMap<HeaderValue>,
b: Body
) -> Pin<Box<dyn Future<Output = Result<Xml<T>, XmlErr>> + 'async_trait + Send, Global>> where
'life0: 'async_trait,
Xml<T>: 'async_trait,
impl<T> FromRequestBody<Yaml<T>, YamlErr> for Yaml<T> where
T: DeserializeOwned + 'static,
[src]
T: DeserializeOwned + 'static,
pub fn assert_content_type<'life0, 'async_trait>(
content_type: Option<&'life0 HeaderValue>
) -> Pin<Box<dyn Future<Output = Result<(), YamlErr>> + 'async_trait + Send, Global>> where
'life0: 'async_trait,
[src]
content_type: Option<&'life0 HeaderValue>
) -> Pin<Box<dyn Future<Output = Result<(), YamlErr>> + 'async_trait + Send, Global>> where
'life0: 'async_trait,
pub fn extract<'life0, 'async_trait>(
__arg0: &'life0 HeaderMap<HeaderValue>,
b: Body
) -> Pin<Box<dyn Future<Output = Result<Yaml<T>, YamlErr>> + 'async_trait + Send, Global>> where
'life0: 'async_trait,
Yaml<T>: 'async_trait,
[src]
__arg0: &'life0 HeaderMap<HeaderValue>,
b: Body
) -> Pin<Box<dyn Future<Output = Result<Yaml<T>, YamlErr>> + 'async_trait + Send, Global>> where
'life0: 'async_trait,
Yaml<T>: 'async_trait,