pub struct JsonrpcResultResponse {
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": "#/$defs/RequestId"
},
"jsonrpc": {
"type": "string",
"const": "2.0"
},
"result": {
"$ref": "#/$defs/Result"
}
}
}Fields§
§id: RequestId§result: ResultImplementations§
Trait Implementations§
Source§impl Clone for JsonrpcResultResponse
impl Clone for JsonrpcResultResponse
Source§fn clone(&self) -> JsonrpcResultResponse
fn clone(&self) -> JsonrpcResultResponse
Returns a duplicate 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 JsonrpcResultResponse
impl Debug for JsonrpcResultResponse
Source§impl<'de> Deserialize<'de> for JsonrpcResultResponse
impl<'de> Deserialize<'de> for JsonrpcResultResponse
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<JsonrpcResultResponse> for JsonrpcMessage
impl From<JsonrpcResultResponse> for JsonrpcMessage
Source§fn from(value: JsonrpcResultResponse) -> Self
fn from(value: JsonrpcResultResponse) -> Self
Converts to this type from the input type.
Source§impl From<JsonrpcResultResponse> for JsonrpcResponse
impl From<JsonrpcResultResponse> for JsonrpcResponse
Source§fn from(value: JsonrpcResultResponse) -> Self
fn from(value: JsonrpcResultResponse) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for JsonrpcResultResponse
impl RefUnwindSafe for JsonrpcResultResponse
impl Send for JsonrpcResultResponse
impl Sync for JsonrpcResultResponse
impl Unpin for JsonrpcResultResponse
impl UnwindSafe for JsonrpcResultResponse
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