pub enum JsonRpcPayload {
Success {
result: Value,
},
Error {
error: JsonRpcError,
},
}Variants§
Trait Implementations§
Source§impl Clone for JsonRpcPayload
impl Clone for JsonRpcPayload
Source§fn clone(&self) -> JsonRpcPayload
fn clone(&self) -> JsonRpcPayload
Returns a duplicate 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 JsonRpcPayload
impl Debug for JsonRpcPayload
Source§impl<'de> Deserialize<'de> for JsonRpcPayload
impl<'de> Deserialize<'de> for JsonRpcPayload
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
Auto Trait Implementations§
impl Freeze for JsonRpcPayload
impl RefUnwindSafe for JsonRpcPayload
impl Send for JsonRpcPayload
impl Sync for JsonRpcPayload
impl Unpin for JsonRpcPayload
impl UnwindSafe for JsonRpcPayload
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