Trait nuclear::body::JsonExt [−][src]
pub trait JsonExt { #[must_use] fn parse_json<'r, 'life0, 'async_trait, T: Deserialize<'r>>(
&'r mut self,
parser: &'life0 JsonParser
) -> Pin<Box<dyn Future<Output = Result<T>> + Send + 'async_trait>>ⓘ
where
'r: 'async_trait,
T: 'async_trait,
'life0: 'async_trait,
Self: 'async_trait; #[must_use] fn json<'r, 'async_trait, T: Deserialize<'r>>(
&'r mut self
) -> Pin<Box<dyn Future<Output = Result<T>> + Send + 'async_trait>>ⓘ
where
'r: 'async_trait,
T: 'async_trait,
Self: 'async_trait; }
Required methods
#[must_use]fn parse_json<'r, 'life0, 'async_trait, T: Deserialize<'r>>(
&'r mut self,
parser: &'life0 JsonParser
) -> Pin<Box<dyn Future<Output = Result<T>> + Send + 'async_trait>>ⓘ where
'r: 'async_trait,
T: 'async_trait,
'life0: 'async_trait,
Self: 'async_trait,
[src]
#[must_use]
fn parse_json<'r, 'life0, 'async_trait, T: Deserialize<'r>>(&'r mut self,
parser: &'life0 JsonParser
) -> Pin<Box<dyn Future<Output = Result<T>> + Send + 'async_trait>>ⓘ where
'r: 'async_trait,
T: 'async_trait,
'life0: 'async_trait,
Self: 'async_trait,
#[must_use]fn json<'r, 'async_trait, T: Deserialize<'r>>(
&'r mut self
) -> Pin<Box<dyn Future<Output = Result<T>> + Send + 'async_trait>>ⓘ where
'r: 'async_trait,
T: 'async_trait,
Self: 'async_trait,
[src]
#[must_use]
fn json<'r, 'async_trait, T: Deserialize<'r>>(&'r mut self
) -> Pin<Box<dyn Future<Output = Result<T>> + Send + 'async_trait>>ⓘ where
'r: 'async_trait,
T: 'async_trait,
Self: 'async_trait,
Implementors
impl JsonExt for Request
[src]
impl JsonExt for Request
[src]fn parse_json<'r, 'life0, 'async_trait, T: Deserialize<'r>>(
&'r mut self,
parser: &'life0 JsonParser
) -> Pin<Box<dyn Future<Output = Result<T>> + Send + 'async_trait>>ⓘ where
'r: 'async_trait,
T: 'async_trait,
'life0: 'async_trait,
Self: 'async_trait,
[src]
&'r mut self,
parser: &'life0 JsonParser
) -> Pin<Box<dyn Future<Output = Result<T>> + Send + 'async_trait>>ⓘ where
'r: 'async_trait,
T: 'async_trait,
'life0: 'async_trait,
Self: 'async_trait,
fn json<'r, 'async_trait, T: Deserialize<'r>>(
&'r mut self
) -> Pin<Box<dyn Future<Output = Result<T>> + Send + 'async_trait>>ⓘ where
'r: 'async_trait,
T: 'async_trait,
Self: 'async_trait,
[src]
&'r mut self
) -> Pin<Box<dyn Future<Output = Result<T>> + Send + 'async_trait>>ⓘ where
'r: 'async_trait,
T: 'async_trait,
Self: 'async_trait,