pub enum HttpBody {
None,
Bytes(Vec<u8>),
Multipart(Form),
}Expand description
Body shape for execute_request.
Multipart intentionally exposes reqwest::blocking::multipart::Form
because the form is composed by the caller (REST runners assemble fields,
files, and base64 payloads outside the generic HTTP layer). Inline reqwest
types are an acceptable leak inside this workspace: every consumer already
depends on reqwest, and abstracting Form would only add boilerplate.
Variants§
Auto Trait Implementations§
impl !RefUnwindSafe for HttpBody
impl !Sync for HttpBody
impl !UnwindSafe for HttpBody
impl Freeze for HttpBody
impl Send for HttpBody
impl Unpin for HttpBody
impl UnsafeUnpin for HttpBody
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