pub struct BatchPart {
pub headers: HashMap<String, String>,
pub body: Bytes,
}Expand description
One multipart part: header map (lowercased keys) plus body bytes.
Fields§
§headers: HashMap<String, String>Per-part headers, lowercased. content-type is always set;
x-scrapfly-correlation-id and x-scrapfly-scrape-status
are set by the server.
body: BytesPart body bytes (not decoded).
Trait Implementations§
Auto Trait Implementations§
impl !Freeze for BatchPart
impl RefUnwindSafe for BatchPart
impl Send for BatchPart
impl Sync for BatchPart
impl Unpin for BatchPart
impl UnwindSafe for BatchPart
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