pub struct Json<T>(pub T);
Expand description
A Json extractor
Tuple Fields§
§0: T
Trait Implementations§
source§impl<T: DeserializeOwned> TryFromBody for Json<T>
impl<T: DeserializeOwned> TryFromBody for Json<T>
§type Error = JsonBodyError
type Error = JsonBodyError
The error encountered if conversion fails
source§impl<T: Serialize> TryIntoBody for Json<T>
impl<T: Serialize> TryIntoBody for Json<T>
§type Error = JsonBodyError
type Error = JsonBodyError
The type of error if the conversion fails
Auto Trait Implementations§
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