pub struct JsonrpcBatchResponse(pub Vec<JsonrpcBatchResponseItem>);
Expand description
A JSON-RPC batch response, as described in https://www.jsonrpc.org/specification#batch.
JSON schema
{
"description": "A JSON-RPC batch response, as described in <https://www.jsonrpc.org/specification#batch.>",
"type": "array",
"items": {
"anyOf": [
{
"$ref": "#/definitions/JSONRPCResponse"
},
{
"$ref": "#/definitions/JSONRPCError"
}
]
}
}
Tuple Fields§
§0: Vec<JsonrpcBatchResponseItem>
Trait Implementations§
Source§impl Clone for JsonrpcBatchResponse
impl Clone for JsonrpcBatchResponse
Source§fn clone(&self) -> JsonrpcBatchResponse
fn clone(&self) -> JsonrpcBatchResponse
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 JsonrpcBatchResponse
impl Debug for JsonrpcBatchResponse
Source§impl<'de> Deserialize<'de> for JsonrpcBatchResponse
impl<'de> Deserialize<'de> for JsonrpcBatchResponse
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<JsonrpcBatchResponse> for JsonrpcMessage
impl From<JsonrpcBatchResponse> for JsonrpcMessage
Source§fn from(value: JsonrpcBatchResponse) -> Self
fn from(value: JsonrpcBatchResponse) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for JsonrpcBatchResponse
impl RefUnwindSafe for JsonrpcBatchResponse
impl Send for JsonrpcBatchResponse
impl Sync for JsonrpcBatchResponse
impl Unpin for JsonrpcBatchResponse
impl UnwindSafe for JsonrpcBatchResponse
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