pub struct JsonCreate<T>(pub T);
Expand description
Extension of Json
which returns the CREATED status code
Tuple Fields§
§0: T
Trait Implementations§
Source§impl<T> IntoResponse for JsonCreate<T>where
T: Serialize,
impl<T> IntoResponse for JsonCreate<T>where
T: Serialize,
Source§fn into_response(self) -> Response
fn into_response(self) -> Response
Create a response.
Auto Trait Implementations§
impl<T> Freeze for JsonCreate<T>where
T: Freeze,
impl<T> RefUnwindSafe for JsonCreate<T>where
T: RefUnwindSafe,
impl<T> Send for JsonCreate<T>where
T: Send,
impl<T> Sync for JsonCreate<T>where
T: Sync,
impl<T> Unpin for JsonCreate<T>where
T: Unpin,
impl<T> UnwindSafe for JsonCreate<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