Enum jsonrpc_core::types::request::Call
[−]
[src]
pub enum Call { MethodCall(MethodCall), Notification(Notification), Invalid(Id), }
Represents single jsonrpc call.
Variants
MethodCall(MethodCall)
Call method
Notification(Notification)
Fire notification
Invalid(Id)
Invalid call
Trait Implementations
impl Debug for Call
[src]
impl PartialEq for Call
[src]
fn eq(&self, __arg_0: &Call) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &Call) -> bool
This method tests for !=
.
impl From<MethodCall> for Call
[src]
fn from(mc: MethodCall) -> Self
Performs the conversion.
impl From<Notification> for Call
[src]
fn from(n: Notification) -> Self
Performs the conversion.
impl Serialize for Call
[src]
fn serialize<S>(&self, serializer: S) -> Result<S::Ok, S::Error> where
S: Serializer,
S: Serializer,
Serialize this value into the given Serde serializer. Read more
impl<'a> Deserialize<'a> for Call
[src]
fn deserialize<D>(deserializer: D) -> Result<Call, D::Error> where
D: Deserializer<'a>,
D: Deserializer<'a>,
Deserialize this value from the given Serde deserializer. Read more