pub struct SendBody<'a> { /* private fields */ }Expand description
Request body for sending data via POST, PUT and PATCH.
Typically not indicated with dircetly since the trait AsSendBody is implemented
for the majority of the types of data a user might want to send to a remote server.
That means if you want to send things like String, &str or [u8], they can be
used directly. See documentation for AsSendBody.
The exception is when using Read trait bodies, in which case we wrap the request
body directly. See below SendBody::from_reader.
Implementations§
Trait Implementations§
impl<'a> AsSendBody for SendBody<'a>
Auto Trait Implementations§
impl<'a> !Freeze for SendBody<'a>
impl<'a> !RefUnwindSafe for SendBody<'a>
impl<'a> !Send for SendBody<'a>
impl<'a> !Sync for SendBody<'a>
impl<'a> Unpin for SendBody<'a>
impl<'a> !UnwindSafe for SendBody<'a>
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