Struct diem_json_rpc_types::stream::response::StreamJsonRpcResponse [−][src]
pub struct StreamJsonRpcResponse {
pub jsonrpc: JsonRpcVersion,
pub id: Option<Id>,
pub result: Option<Value>,
pub error: Option<JsonRpcError>,
}
Fields
jsonrpc: JsonRpcVersion
id: Option<Id>
result: Option<Value>
error: Option<JsonRpcError>
Implementations
pub fn parse_result(
&self,
method: &StreamMethod
) -> Result<Option<StreamJsonRpcResponseView>, Error>
Trait Implementations
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
Performs the conversion.
Auto Trait Implementations
impl RefUnwindSafe for StreamJsonRpcResponse
impl Send for StreamJsonRpcResponse
impl Sync for StreamJsonRpcResponse
impl Unpin for StreamJsonRpcResponse
impl UnwindSafe for StreamJsonRpcResponse
Blanket Implementations
Mutably borrows from an owned value. Read more
Generates a hash used only for tests.