Struct diem_json_rpc_types::response::JsonRpcResponse
source · pub struct JsonRpcResponse {
pub diem_chain_id: u8,
pub diem_ledger_version: u64,
pub diem_ledger_timestampusec: u64,
pub jsonrpc: String,
pub id: Option<Value>,
pub result: Option<Value>,
pub error: Option<JsonRpcError>,
}
Fields§
§diem_chain_id: u8
§diem_ledger_version: u64
§diem_ledger_timestampusec: u64
§jsonrpc: String
§id: Option<Value>
§result: Option<Value>
§error: Option<JsonRpcError>
Implementations§
Trait Implementations§
source§impl Clone for JsonRpcResponse
impl Clone for JsonRpcResponse
source§fn clone(&self) -> JsonRpcResponse
fn clone(&self) -> JsonRpcResponse
Returns a copy 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 JsonRpcResponse
impl Debug for JsonRpcResponse
source§impl<'de> Deserialize<'de> for JsonRpcResponse
impl<'de> Deserialize<'de> for JsonRpcResponse
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 RefUnwindSafe for JsonRpcResponse
impl Send for JsonRpcResponse
impl Sync for JsonRpcResponse
impl Unpin for JsonRpcResponse
impl UnwindSafe for JsonRpcResponse
Blanket Implementations§
§impl<T> TestOnlyHash for Twhere
T: Serialize + ?Sized,
impl<T> TestOnlyHash for Twhere T: Serialize + ?Sized,
§fn test_only_hash(&self) -> HashValue
fn test_only_hash(&self) -> HashValue
Generates a hash used only for tests.