Enum yajrc::SingleOrBatchRpcRequest
source · pub enum SingleOrBatchRpcRequest<T: RpcMethod = AnyRpcMethod<'static>> {
Single(RpcRequest<T>),
Batch(Vec<RpcRequest<T>>),
}
Variants§
Single(RpcRequest<T>)
Batch(Vec<RpcRequest<T>>)
Trait Implementations§
source§impl<'de, T> Deserialize<'de> for SingleOrBatchRpcRequest<T>
impl<'de, T> Deserialize<'de> for SingleOrBatchRpcRequest<T>
source§fn deserialize<D: Deserializer<'de>>(deserializer: D) -> Result<Self, D::Error>
fn deserialize<D: Deserializer<'de>>(deserializer: D) -> Result<Self, D::Error>
Deserialize this value from the given Serde deserializer. Read more
source§impl<T> Serialize for SingleOrBatchRpcRequest<T>
impl<T> Serialize for SingleOrBatchRpcRequest<T>
Auto Trait Implementations§
impl<T> RefUnwindSafe for SingleOrBatchRpcRequest<T>
impl<T> Send for SingleOrBatchRpcRequest<T>
impl<T> Sync for SingleOrBatchRpcRequest<T>
impl<T> Unpin for SingleOrBatchRpcRequest<T>
impl<T> UnwindSafe for SingleOrBatchRpcRequest<T>
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