pub enum JsonRpcResponseForRpcReceiptResponseAndRpcError {
Variant0 {
id: String,
jsonrpc: String,
result: RpcReceiptResponse,
},
Variant1 {
error: RpcError,
id: String,
jsonrpc: String,
},
}Expand description
JsonRpcResponseForRpcReceiptResponseAndRpcError
JSON schema
{
"title": "JsonRpcResponse_for_RpcReceiptResponse_and_RpcError",
"type": "object",
"oneOf": [
{
"type": "object",
"required": [
"result"
],
"properties": {
"result": {
"$ref": "#/components/schemas/RpcReceiptResponse"
}
}
},
{
"type": "object",
"required": [
"error"
],
"properties": {
"error": {
"$ref": "#/components/schemas/RpcError"
}
}
}
],
"required": [
"id",
"jsonrpc"
],
"properties": {
"id": {
"type": "string"
},
"jsonrpc": {
"type": "string"
}
}
}Variants§
Trait Implementations§
Source§impl Clone for JsonRpcResponseForRpcReceiptResponseAndRpcError
impl Clone for JsonRpcResponseForRpcReceiptResponseAndRpcError
Source§fn clone(&self) -> JsonRpcResponseForRpcReceiptResponseAndRpcError
fn clone(&self) -> JsonRpcResponseForRpcReceiptResponseAndRpcError
Returns a duplicate of the value. Read more
1.0.0 · Source§const fn clone_from(&mut self, source: &Self)
const fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl<'de> Deserialize<'de> for JsonRpcResponseForRpcReceiptResponseAndRpcError
impl<'de> Deserialize<'de> for JsonRpcResponseForRpcReceiptResponseAndRpcError
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<JsonRpcResponseForRpcReceiptResponseAndRpcError, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<JsonRpcResponseForRpcReceiptResponseAndRpcError, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl From<&JsonRpcResponseForRpcReceiptResponseAndRpcError> for JsonRpcResponseForRpcReceiptResponseAndRpcError
impl From<&JsonRpcResponseForRpcReceiptResponseAndRpcError> for JsonRpcResponseForRpcReceiptResponseAndRpcError
Source§fn from(
value: &JsonRpcResponseForRpcReceiptResponseAndRpcError,
) -> JsonRpcResponseForRpcReceiptResponseAndRpcError
fn from( value: &JsonRpcResponseForRpcReceiptResponseAndRpcError, ) -> JsonRpcResponseForRpcReceiptResponseAndRpcError
Converts to this type from the input type.
Source§impl Serialize for JsonRpcResponseForRpcReceiptResponseAndRpcError
impl Serialize for JsonRpcResponseForRpcReceiptResponseAndRpcError
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
Auto Trait Implementations§
impl Freeze for JsonRpcResponseForRpcReceiptResponseAndRpcError
impl RefUnwindSafe for JsonRpcResponseForRpcReceiptResponseAndRpcError
impl Send for JsonRpcResponseForRpcReceiptResponseAndRpcError
impl Sync for JsonRpcResponseForRpcReceiptResponseAndRpcError
impl Unpin for JsonRpcResponseForRpcReceiptResponseAndRpcError
impl UnwindSafe for JsonRpcResponseForRpcReceiptResponseAndRpcError
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