Struct floresta_cli::jsonrpc_client::JsonRpcResponse
source · pub struct JsonRpcResponse<Res> {
pub jsonrpc: String,
pub id: u64,
pub result: Option<Res>,
pub error: Option<Value>,
}
Fields§
§jsonrpc: String
§id: u64
§result: Option<Res>
§error: Option<Value>
Trait Implementations§
source§impl<Res: Debug> Debug for JsonRpcResponse<Res>
impl<Res: Debug> Debug for JsonRpcResponse<Res>
source§impl<'de, Res> Deserialize<'de> for JsonRpcResponse<Res>where
Res: Deserialize<'de>,
impl<'de, Res> Deserialize<'de> for JsonRpcResponse<Res>where Res: Deserialize<'de>,
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<Res> RefUnwindSafe for JsonRpcResponse<Res>where Res: RefUnwindSafe,
impl<Res> Send for JsonRpcResponse<Res>where Res: Send,
impl<Res> Sync for JsonRpcResponse<Res>where Res: Sync,
impl<Res> Unpin for JsonRpcResponse<Res>where Res: Unpin,
impl<Res> UnwindSafe for JsonRpcResponse<Res>where Res: UnwindSafe,
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