[−][src]Struct dropshot::TypedBody
TypedBody<BodyType>
is an extractor used to deserialize an instance of
BodyType
from an HTTP request body. BodyType
is any structure of yours
that implements serde::Deserialize
. See this module's documentation for
more information.
Implementations
impl<BodyType: JsonSchema + DeserializeOwned + Send + Sync> TypedBody<BodyType>
[src]
pub fn into_inner(self) -> BodyType
[src]
Trait Implementations
impl<BodyType> Extractor for TypedBody<BodyType> where
BodyType: JsonSchema + DeserializeOwned + Send + Sync + 'static,
[src]
BodyType: JsonSchema + DeserializeOwned + Send + Sync + 'static,
fn from_request<'async_trait>(
rqctx: Arc<RequestContext>
) -> Pin<Box<dyn Future<Output = Result<TypedBody<BodyType>, HttpError>> + Send + 'async_trait>>
[src]
rqctx: Arc<RequestContext>
) -> Pin<Box<dyn Future<Output = Result<TypedBody<BodyType>, HttpError>> + Send + 'async_trait>>
fn metadata() -> Vec<ApiEndpointParameter>
[src]
Auto Trait Implementations
impl<BodyType> RefUnwindSafe for TypedBody<BodyType> where
BodyType: RefUnwindSafe,
BodyType: RefUnwindSafe,
impl<BodyType> Send for TypedBody<BodyType>
impl<BodyType> Sync for TypedBody<BodyType>
impl<BodyType> Unpin for TypedBody<BodyType> where
BodyType: Unpin,
BodyType: Unpin,
impl<BodyType> UnwindSafe for TypedBody<BodyType> where
BodyType: UnwindSafe,
BodyType: UnwindSafe,
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> SendSyncUnwindSafe for T where
T: Send + Sync + UnwindSafe + ?Sized,
[src]
T: Send + Sync + UnwindSafe + ?Sized,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,