pub struct Json<T>(pub T);Tuple Fields§
§0: TTrait Implementations§
Source§impl<'a, T: DeserializeOwned> FromRequest<'a> for Json<T>
impl<'a, T: DeserializeOwned> FromRequest<'a> for Json<T>
fn from_request( _req: &'a Request, body: &mut Body, ) -> Result<Self, ChannelError>
fn from_request_without_body(req: &'a Request) -> Result<Self, ChannelError>
Source§impl<T: Serialize + Send> IntoResponse for Json<T>
impl<T: Serialize + Send> IntoResponse for Json<T>
fn into_response(self) -> Response
impl<T: Eq> Eq for Json<T>
impl<T> StructuralPartialEq for Json<T>
Auto Trait Implementations§
impl<T> Freeze for Json<T>where
T: Freeze,
impl<T> RefUnwindSafe for Json<T>where
T: RefUnwindSafe,
impl<T> Send for Json<T>where
T: Send,
impl<T> Sync for Json<T>where
T: Sync,
impl<T> Unpin for Json<T>where
T: Unpin,
impl<T> UnwindSafe for Json<T>where
T: UnwindSafe,
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more