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
sourceimpl<'de> Deserialize<'de> for SingleOrBatchRpcRequest
impl<'de> Deserialize<'de> for SingleOrBatchRpcRequest
sourcefn 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
sourceimpl Serialize for SingleOrBatchRpcRequest
impl Serialize for SingleOrBatchRpcRequest
Auto Trait Implementations
impl<T> RefUnwindSafe for SingleOrBatchRpcRequest<T> where
T: RefUnwindSafe,
<T as RpcMethod>::Params: RefUnwindSafe,
impl<T> Send for SingleOrBatchRpcRequest<T> where
T: Send,
<T as RpcMethod>::Params: Send,
impl<T> Sync for SingleOrBatchRpcRequest<T> where
T: Sync,
<T as RpcMethod>::Params: Sync,
impl<T> Unpin for SingleOrBatchRpcRequest<T> where
T: Unpin,
<T as RpcMethod>::Params: Unpin,
impl<T> UnwindSafe for SingleOrBatchRpcRequest<T> where
T: UnwindSafe,
<T as RpcMethod>::Params: UnwindSafe,
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more