pub enum PreparedBody {
Empty,
Json(Value),
Form(Vec<(String, String)>),
Multipart(Vec<PreparedMultipartPart>),
RawBytes {
bytes: Vec<u8>,
content_type: Option<String>,
},
}Expand description
Body data prepared for HTTP-like protocol execution.
Variants§
Trait Implementations§
Source§impl Clone for PreparedBody
impl Clone for PreparedBody
Source§fn clone(&self) -> PreparedBody
fn clone(&self) -> PreparedBody
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for PreparedBody
impl RefUnwindSafe for PreparedBody
impl Send for PreparedBody
impl Sync for PreparedBody
impl Unpin for PreparedBody
impl UnsafeUnpin for PreparedBody
impl UnwindSafe for PreparedBody
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