pub struct Json<B>(pub B);
Expand description
A request body for streaming out JSON
Tuple Fields
0: B
Trait Implementations
sourceimpl<B: Serialize> Body for Json<B>
impl<B: Serialize> Body for Json<B>
Auto Trait Implementations
impl<B> RefUnwindSafe for Json<B>where
B: RefUnwindSafe,
impl<B> Send for Json<B>where
B: Send,
impl<B> Sync for Json<B>where
B: Sync,
impl<B> Unpin for Json<B>where
B: Unpin,
impl<B> UnwindSafe for Json<B>where
B: UnwindSafe,
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more