Enum jsonrpc_core::types::request::Call
source · pub enum Call {
MethodCall(MethodCall),
Notification(Notification),
Invalid {
id: Id,
},
}
Expand description
Represents single jsonrpc call.
Variants
MethodCall(MethodCall)
Call method
Notification(Notification)
Fire notification
Invalid
Fields
id: Id
Call id (if known)
Invalid call
Trait Implementations
sourceimpl<'de> Deserialize<'de> for Call
impl<'de> Deserialize<'de> for Call
sourcefn 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
sourceimpl From<MethodCall> for Call
impl From<MethodCall> for Call
sourcefn from(mc: MethodCall) -> Self
fn from(mc: MethodCall) -> Self
Converts to this type from the input type.
sourceimpl From<Notification> for Call
impl From<Notification> for Call
sourcefn from(n: Notification) -> Self
fn from(n: Notification) -> Self
Converts to this type from the input type.
impl StructuralPartialEq for Call
Auto Trait Implementations
impl RefUnwindSafe for Call
impl Send for Call
impl Sync for Call
impl Unpin for Call
impl UnwindSafe for Call
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
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