pub enum MaybeBatchedRequest<T> {
Single(Request<T>),
Batch(Vec<Request<T>>),
}
Expand description
To send several Request objects at the same time, the Client MAY send an Array filled with Request objects.
Variants§
Trait Implementations§
source§impl<T: Clone> Clone for MaybeBatchedRequest<T>
impl<T: Clone> Clone for MaybeBatchedRequest<T>
source§fn clone(&self) -> MaybeBatchedRequest<T>
fn clone(&self) -> MaybeBatchedRequest<T>
Returns a copy 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 moresource§impl<T: Debug> Debug for MaybeBatchedRequest<T>
impl<T: Debug> Debug for MaybeBatchedRequest<T>
source§impl<'de, T> Deserialize<'de> for MaybeBatchedRequest<T>where
T: Deserialize<'de>,
impl<'de, T> Deserialize<'de> for MaybeBatchedRequest<T>where
T: Deserialize<'de>,
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl<T: PartialEq> PartialEq for MaybeBatchedRequest<T>
impl<T: PartialEq> PartialEq for MaybeBatchedRequest<T>
source§fn eq(&self, other: &MaybeBatchedRequest<T>) -> bool
fn eq(&self, other: &MaybeBatchedRequest<T>) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl<T> Serialize for MaybeBatchedRequest<T>where
T: Serialize,
impl<T> Serialize for MaybeBatchedRequest<T>where
T: Serialize,
impl<T: Eq> Eq for MaybeBatchedRequest<T>
impl<T> StructuralPartialEq for MaybeBatchedRequest<T>
Auto Trait Implementations§
impl<T> Freeze for MaybeBatchedRequest<T>
impl<T> RefUnwindSafe for MaybeBatchedRequest<T>where
T: RefUnwindSafe,
impl<T> Send for MaybeBatchedRequest<T>where
T: Send,
impl<T> Sync for MaybeBatchedRequest<T>where
T: Sync,
impl<T> Unpin for MaybeBatchedRequest<T>where
T: Unpin,
impl<T> UnwindSafe for MaybeBatchedRequest<T>where
T: RefUnwindSafe + UnwindSafe,
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)