pub struct Batch {
pub tag: usize,
pub requests: Vec<Request<Body>>,
}
Fields§
§tag: usize
A optional tag ID for grouping results together.
This is a usize
for the sake of efficiency, this can
be used as a mapping key for example.
Samples are produced on a per-tag basis, so if a tag changes from the current sample vs the tag provided by the batch a new sample will be created.
requests: Vec<Request<Body>>
The batch requests.
Auto Trait Implementations§
impl Freeze for Batch
impl !RefUnwindSafe for Batch
impl Send for Batch
impl Sync for Batch
impl Unpin for Batch
impl !UnwindSafe for Batch
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