pub struct JsonRpc {
pub json_rpc: String,
pub id: String,
pub result: Option<ResultJson>,
pub error: Option<String>,
}Fields§
§json_rpc: StringJSON RPC Version
id: StringChain Id
result: Option<ResultJson>Json RPC Results
error: Option<String>Json RPC Result Error
Trait Implementations§
Source§impl<'de> Deserialize<'de> for JsonRpc
impl<'de> Deserialize<'de> for JsonRpc
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
impl StructuralPartialEq for JsonRpc
Auto Trait Implementations§
impl Freeze for JsonRpc
impl RefUnwindSafe for JsonRpc
impl Send for JsonRpc
impl Sync for JsonRpc
impl Unpin for JsonRpc
impl UnwindSafe for JsonRpc
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