Struct async_jsonrpc_client::MethodCall [−][src]
Represents JSON-RPC 2.0 request which is a method call.
Fields
jsonrpc: Version
A String specifying the version of the JSON-RPC protocol.
method: String
A String containing the name of the method to be invoked.
Method names that begin with the word rpc followed by a period character (U+002E or ASCII 46) are reserved for rpc-internal methods and extensions and MUST NOT be used for anything else.
params: Option<Params>
A Structured value that holds the parameter values to be used during the invocation of the method. This member MAY be omitted.
id: Id
An identifier established by the Client. If it is not included it is assumed to be a notification.
Implementations
impl MethodCall
[src]
pub fn new<M>(method: M, params: Option<Params>, id: Id) -> MethodCall where
M: Into<String>,
[src]
M: Into<String>,
Creates a JSON-RPC 2.0 request which is a method call.
Trait Implementations
impl Clone for MethodCall
[src]
pub fn clone(&self) -> MethodCall
[src]
pub fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Debug for MethodCall
[src]
impl<'de> Deserialize<'de> for MethodCall
[src]
pub fn deserialize<__D>(
__deserializer: __D
) -> Result<MethodCall, <__D as Deserializer<'de>>::Error> where
__D: Deserializer<'de>,
[src]
__deserializer: __D
) -> Result<MethodCall, <__D as Deserializer<'de>>::Error> where
__D: Deserializer<'de>,
impl Display for MethodCall
[src]
impl Eq for MethodCall
[src]
impl From<MethodCall> for MethodCallRequest
[src]
pub fn from(call: MethodCall) -> MethodCallRequest
[src]
impl From<MethodCall> for Call
[src]
pub fn from(call: MethodCall) -> Call
[src]
impl PartialEq<MethodCall> for MethodCall
[src]
pub fn eq(&self, other: &MethodCall) -> bool
[src]
pub fn ne(&self, other: &MethodCall) -> bool
[src]
impl Serialize for MethodCall
[src]
pub fn serialize<__S>(
&self,
__serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error> where
__S: Serializer,
[src]
&self,
__serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error> where
__S: Serializer,
impl StructuralEq for MethodCall
[src]
impl StructuralPartialEq for MethodCall
[src]
Auto Trait Implementations
impl RefUnwindSafe for MethodCall
impl Send for MethodCall
impl Sync for MethodCall
impl Unpin for MethodCall
impl UnwindSafe for MethodCall
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> DeserializeOwned for T where
T: for<'de> Deserialize<'de>,
[src]
T: for<'de> Deserialize<'de>,
impl<Q, K> Equivalent<K> for Q where
K: Borrow<Q> + ?Sized,
Q: Eq + ?Sized,
[src]
K: Borrow<Q> + ?Sized,
Q: Eq + ?Sized,
pub fn equivalent(&self, key: &K) -> bool
[src]
impl<T> From<T> for T
[src]
impl<T> Instrument for T
[src]
pub fn instrument(self, span: Span) -> Instrumented<Self>
[src]
pub fn in_current_span(self) -> Instrumented<Self>
[src]
impl<T> Instrument for T
[src]
pub fn instrument(self, span: Span) -> Instrumented<Self>
[src]
pub fn in_current_span(self) -> Instrumented<Self>
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> Same<T> for T
type Output = T
Should always be Self
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
impl<T> ToString for T where
T: Display + ?Sized,
[src]
T: Display + ?Sized,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
pub fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,