pub enum RpcLightClientExecutionProofRequest {
Variant0 {
light_client_head: CryptoHash,
sender_id: AccountId,
transaction_hash: CryptoHash,
type_: RpcLightClientExecutionProofRequestVariant0Type,
},
Variant1 {
light_client_head: CryptoHash,
receipt_id: CryptoHash,
receiver_id: AccountId,
type_: RpcLightClientExecutionProofRequestVariant1Type,
},
}
Expand description
RpcLightClientExecutionProofRequest
JSON schema
{
"title": "RpcLightClientExecutionProofRequest",
"type": "object",
"oneOf": [
{
"title": "transaction",
"type": "object",
"required": [
"sender_id",
"transaction_hash",
"type"
],
"properties": {
"sender_id": {
"$ref": "#/components/schemas/AccountId"
},
"transaction_hash": {
"$ref": "#/components/schemas/CryptoHash"
},
"type": {
"type": "string",
"enum": [
"transaction"
]
}
}
},
{
"title": "receipt",
"type": "object",
"required": [
"receipt_id",
"receiver_id",
"type"
],
"properties": {
"receipt_id": {
"$ref": "#/components/schemas/CryptoHash"
},
"receiver_id": {
"$ref": "#/components/schemas/AccountId"
},
"type": {
"type": "string",
"enum": [
"receipt"
]
}
}
}
],
"required": [
"light_client_head"
],
"properties": {
"light_client_head": {
"$ref": "#/components/schemas/CryptoHash"
}
}
}
Variants§
Variant0
Variant1
Trait Implementations§
Source§impl Clone for RpcLightClientExecutionProofRequest
impl Clone for RpcLightClientExecutionProofRequest
Source§fn clone(&self) -> RpcLightClientExecutionProofRequest
fn clone(&self) -> RpcLightClientExecutionProofRequest
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 RpcLightClientExecutionProofRequest
impl<'de> Deserialize<'de> for RpcLightClientExecutionProofRequest
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<&RpcLightClientExecutionProofRequest> for RpcLightClientExecutionProofRequest
impl From<&RpcLightClientExecutionProofRequest> for RpcLightClientExecutionProofRequest
Source§fn from(value: &RpcLightClientExecutionProofRequest) -> Self
fn from(value: &RpcLightClientExecutionProofRequest) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for RpcLightClientExecutionProofRequest
impl RefUnwindSafe for RpcLightClientExecutionProofRequest
impl Send for RpcLightClientExecutionProofRequest
impl Sync for RpcLightClientExecutionProofRequest
impl Unpin for RpcLightClientExecutionProofRequest
impl UnwindSafe for RpcLightClientExecutionProofRequest
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