pub struct RpcMethodCall {
pub jsonrpc: Version,
pub method: String,
pub params: RequestParams,
pub id: Id,
}
Expand description
A JSON-RPC request object, a method call
Fields§
§jsonrpc: Version
The version of the protocol
method: String
The name of the method to execute
params: RequestParams
An array or object containing the parameters to be passed to the function.
id: Id
The identifier for this request issued by the client, An Id must be a String, null or a number. If missing it’s considered a notification in Version::V2
Implementations§
Trait Implementations§
Source§impl Clone for RpcMethodCall
impl Clone for RpcMethodCall
Source§fn clone(&self) -> RpcMethodCall
fn clone(&self) -> RpcMethodCall
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 Debug for RpcMethodCall
impl Debug for RpcMethodCall
Source§impl<'de> Deserialize<'de> for RpcMethodCall
impl<'de> Deserialize<'de> for RpcMethodCall
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 PartialEq for RpcMethodCall
impl PartialEq for RpcMethodCall
Source§impl Serialize for RpcMethodCall
impl Serialize for RpcMethodCall
impl Eq for RpcMethodCall
impl StructuralPartialEq for RpcMethodCall
Auto Trait Implementations§
impl Freeze for RpcMethodCall
impl RefUnwindSafe for RpcMethodCall
impl Send for RpcMethodCall
impl Sync for RpcMethodCall
impl Unpin for RpcMethodCall
impl UnwindSafe for RpcMethodCall
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,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Layout§
Note: Most layout information is completely unstable and may even differ between compilations. The only exception is types with certain repr(...)
attributes. Please see the Rust Reference's “Type Layout” chapter for details on type layout guarantees.
Size: 120 bytes