pub enum MethodCallRequest {
Single(MethodCall),
Batch(Vec<MethodCall>),
}
Expand description
JSON-RPC 2.0 Request object (only for method call).
Variants§
Trait Implementations§
Source§impl Clone for MethodCallRequest
impl Clone for MethodCallRequest
Source§fn clone(&self) -> MethodCallRequest
fn clone(&self) -> MethodCallRequest
Returns a duplicate 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 Debug for MethodCallRequest
impl Debug for MethodCallRequest
Source§impl<'de> Deserialize<'de> for MethodCallRequest
impl<'de> Deserialize<'de> for MethodCallRequest
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<MethodCallRequest, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<MethodCallRequest, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Display for MethodCallRequest
impl Display for MethodCallRequest
Source§impl From<MethodCall> for MethodCallRequest
impl From<MethodCall> for MethodCallRequest
Source§fn from(call: MethodCall) -> MethodCallRequest
fn from(call: MethodCall) -> MethodCallRequest
Converts to this type from the input type.
Source§impl From<Vec<MethodCall>> for MethodCallRequest
impl From<Vec<MethodCall>> for MethodCallRequest
Source§fn from(calls: Vec<MethodCall>) -> MethodCallRequest
fn from(calls: Vec<MethodCall>) -> MethodCallRequest
Converts to this type from the input type.
Source§impl PartialEq for MethodCallRequest
impl PartialEq for MethodCallRequest
Source§impl Serialize for MethodCallRequest
impl Serialize for MethodCallRequest
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
impl Eq for MethodCallRequest
impl StructuralPartialEq for MethodCallRequest
Auto Trait Implementations§
impl Freeze for MethodCallRequest
impl RefUnwindSafe for MethodCallRequest
impl Send for MethodCallRequest
impl Sync for MethodCallRequest
impl Unpin for MethodCallRequest
impl UnwindSafe for MethodCallRequest
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§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.