#[non_exhaustive]pub enum Batch {
Items(Vec<Result<Answer>>),
Refused(Box<Answer>),
}Expand description
The answer to a batch (5.7).
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Items(Vec<Result<Answer>>)
200: one result per request, in request order; a failing item is its error, in place.
Refused(Box<Answer>)
The whole batch refused: one envelope (unlicensed, payment_required, rate_limited,
bad_request or error).
Trait Implementations§
impl Eq for Batch
impl StructuralPartialEq for Batch
Auto Trait Implementations§
impl Freeze for Batch
impl RefUnwindSafe for Batch
impl Send for Batch
impl Sync for Batch
impl Unpin for Batch
impl UnsafeUnpin 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