pub struct Text<B>(pub B);
Expand description
A request body containing UTF-8-encoded text
Tuple Fields
0: B
Trait Implementations
sourceimpl<B: AsRef<str>> Body for Text<B>
impl<B: AsRef<str>> Body for Text<B>
Auto Trait Implementations
impl<B> RefUnwindSafe for Text<B> where
B: RefUnwindSafe,
impl<B> Send for Text<B> where
B: Send,
impl<B> Sync for Text<B> where
B: Sync,
impl<B> Unpin for Text<B> where
B: Unpin,
impl<B> UnwindSafe for Text<B> where
B: UnwindSafe,
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
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