pub struct JsonrpcResponse {
pub id: RequestId,
pub result: Result,
/* private fields */
}
Expand description
A successful (non-error) response to a request.
JSON schema
{
"description": "A successful (non-error) response to a request.",
"type": "object",
"required": [
"id",
"jsonrpc",
"result"
],
"properties": {
"id": {
"$ref": "#/definitions/RequestId"
},
"jsonrpc": {
"type": "string",
"const": "2.0"
},
"result": {
"$ref": "#/definitions/Result"
}
}
}
Fields§
§id: RequestId
§result: Result
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
Source§impl From<JsonrpcResponse> for JsonrpcBatchResponseItem
impl From<JsonrpcResponse> for JsonrpcBatchResponseItem
Source§fn from(value: JsonrpcResponse) -> Self
fn from(value: JsonrpcResponse) -> Self
Converts to this type from the input type.
Source§impl From<JsonrpcResponse> for JsonrpcMessage
impl From<JsonrpcResponse> for JsonrpcMessage
Source§fn from(value: JsonrpcResponse) -> Self
fn from(value: JsonrpcResponse) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for JsonrpcResponse
impl RefUnwindSafe for JsonrpcResponse
impl Send for JsonrpcResponse
impl Sync for JsonrpcResponse
impl Unpin for JsonrpcResponse
impl UnwindSafe for JsonrpcResponse
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