[−][src]Trait darpi::request::FromRequestBody
Required methods
#[must_use]pub fn extract<'async_trait>(
b: Body
) -> Pin<Box<dyn Future<Output = Result<T, E>> + 'async_trait + Send, Global>>
[src]
b: Body
) -> Pin<Box<dyn Future<Output = Result<T, E>> + 'async_trait + Send, Global>>
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<'async_trait>(
b: Body
) -> Pin<Box<dyn Future<Output = Result<Json<T>, JsonErr>> + 'async_trait + Send, Global>> where
Json<T>: 'async_trait,
[src]
b: Body
) -> Pin<Box<dyn Future<Output = Result<Json<T>, JsonErr>> + 'async_trait + Send, Global>> where
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<'async_trait>(
b: Body
) -> Pin<Box<dyn Future<Output = Result<Xml<T>, XmlErr>> + 'async_trait + Send, Global>> where
Xml<T>: 'async_trait,
[src]
b: Body
) -> Pin<Box<dyn Future<Output = Result<Xml<T>, XmlErr>> + 'async_trait + Send, Global>> where
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<'async_trait>(
b: Body
) -> Pin<Box<dyn Future<Output = Result<Yaml<T>, YamlErr>> + 'async_trait + Send, Global>> where
Yaml<T>: 'async_trait,
[src]
b: Body
) -> Pin<Box<dyn Future<Output = Result<Yaml<T>, YamlErr>> + 'async_trait + Send, Global>> where
Yaml<T>: 'async_trait,
impl<T, E> FromRequestBody<T, E> for ExtractBody<T> where
T: FromRequestBody<T, E> + 'static,
E: ResponderError + 'static,
[src]
T: FromRequestBody<T, E> + 'static,
E: ResponderError + 'static,