Enum ckb_jsonrpc_types::request::Call [−][src]
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 call
Show fields
Fields of Invalid
id: Id
Call id (if known)
Trait Implementations
impl<'de> Deserialize<'de> for Call
[src]
impl<'de> Deserialize<'de> for Call
[src]pub fn deserialize<__D>(
__deserializer: __D
) -> Result<Call, <__D as Deserializer<'de>>::Error> where
__D: Deserializer<'de>,
[src]
pub fn deserialize<__D>(
__deserializer: __D
) -> Result<Call, <__D as Deserializer<'de>>::Error> where
__D: Deserializer<'de>,
[src]Deserialize this value from the given Serde deserializer. Read more
impl From<MethodCall> for Call
[src]
impl From<MethodCall> for Call
[src]pub fn from(mc: MethodCall) -> Call
[src]
pub fn from(mc: MethodCall) -> Call
[src]Performs the conversion.
impl From<Notification> for Call
[src]
impl From<Notification> for Call
[src]pub fn from(n: Notification) -> Call
[src]
pub fn from(n: Notification) -> Call
[src]Performs the conversion.
impl Serialize for Call
[src]
impl Serialize for Call
[src]pub fn serialize<__S>(
&self,
__serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error> where
__S: Serializer,
[src]
pub fn serialize<__S>(
&self,
__serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error> where
__S: Serializer,
[src]Serialize this value into the given Serde serializer. Read more
impl StructuralPartialEq for Call
[src]
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
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]pub fn borrow_mut(&mut self) -> &mut T
[src]
pub fn borrow_mut(&mut self) -> &mut T
[src]Mutably borrows from an owned value. Read more
impl<T> ToOwned for T where
T: Clone,
[src]
impl<T> ToOwned for T where
T: Clone,
[src]type Owned = T
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn to_owned(&self) -> T
[src]Creates owned data from borrowed data, usually by cloning. Read more
pub fn clone_into(&self, target: &mut T)
[src]
pub fn clone_into(&self, target: &mut T)
[src]🔬 This is a nightly-only experimental API. (toowned_clone_into
)
recently added
Uses borrowed data to replace owned data, usually by cloning. Read more
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
pub fn vzip(self) -> V
impl<T> DeserializeOwned for T where
T: for<'de> Deserialize<'de>,
[src]
T: for<'de> Deserialize<'de>,