pub enum JsonRpcResponseForRpcLightClientBlockProofResponseAndRpcError {
Variant0 {
id: String,
jsonrpc: String,
result: RpcLightClientBlockProofResponse,
},
Variant1 {
error: RpcError,
id: String,
jsonrpc: String,
},
}
Expand description
JsonRpcResponseForRpcLightClientBlockProofResponseAndRpcError
JSON schema
{
"title": "JsonRpcResponse_for_RpcLightClientBlockProofResponse_and_RpcError",
"type": "object",
"oneOf": [
{
"type": "object",
"required": [
"result"
],
"properties": {
"result": {
"$ref": "#/components/schemas/RpcLightClientBlockProofResponse"
}
}
},
{
"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 JsonRpcResponseForRpcLightClientBlockProofResponseAndRpcError
impl Clone for JsonRpcResponseForRpcLightClientBlockProofResponseAndRpcError
Source§fn clone(&self) -> JsonRpcResponseForRpcLightClientBlockProofResponseAndRpcError
fn clone(&self) -> JsonRpcResponseForRpcLightClientBlockProofResponseAndRpcError
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<'de> Deserialize<'de> for JsonRpcResponseForRpcLightClientBlockProofResponseAndRpcError
impl<'de> Deserialize<'de> for JsonRpcResponseForRpcLightClientBlockProofResponseAndRpcError
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<&JsonRpcResponseForRpcLightClientBlockProofResponseAndRpcError> for JsonRpcResponseForRpcLightClientBlockProofResponseAndRpcError
impl From<&JsonRpcResponseForRpcLightClientBlockProofResponseAndRpcError> for JsonRpcResponseForRpcLightClientBlockProofResponseAndRpcError
Source§fn from(
value: &JsonRpcResponseForRpcLightClientBlockProofResponseAndRpcError,
) -> Self
fn from( value: &JsonRpcResponseForRpcLightClientBlockProofResponseAndRpcError, ) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for JsonRpcResponseForRpcLightClientBlockProofResponseAndRpcError
impl RefUnwindSafe for JsonRpcResponseForRpcLightClientBlockProofResponseAndRpcError
impl Send for JsonRpcResponseForRpcLightClientBlockProofResponseAndRpcError
impl Sync for JsonRpcResponseForRpcLightClientBlockProofResponseAndRpcError
impl Unpin for JsonRpcResponseForRpcLightClientBlockProofResponseAndRpcError
impl UnwindSafe for JsonRpcResponseForRpcLightClientBlockProofResponseAndRpcError
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