Enum RpcQueryRequest

Source
pub enum RpcQueryRequest {
Show 24 variants Variant0 { account_id: AccountId, block_id: BlockId, request_type: RpcQueryRequestVariant0RequestType, }, Variant1 { account_id: AccountId, block_id: BlockId, request_type: RpcQueryRequestVariant1RequestType, }, Variant2 { account_id: AccountId, block_id: BlockId, include_proof: Option<bool>, prefix_base64: String, request_type: RpcQueryRequestVariant2RequestType, }, Variant3 { account_id: AccountId, block_id: BlockId, public_key: PublicKey, request_type: RpcQueryRequestVariant3RequestType, }, Variant4 { account_id: AccountId, block_id: BlockId, request_type: RpcQueryRequestVariant4RequestType, }, Variant5 { account_id: AccountId, args_base64: String, block_id: BlockId, method_name: String, request_type: RpcQueryRequestVariant5RequestType, }, Variant6 { block_id: BlockId, code_hash: CryptoHash, request_type: RpcQueryRequestVariant6RequestType, }, Variant7 { account_id: AccountId, block_id: BlockId, request_type: RpcQueryRequestVariant7RequestType, }, Variant8 { account_id: AccountId, finality: Finality, request_type: RpcQueryRequestVariant8RequestType, }, Variant9 { account_id: AccountId, finality: Finality, request_type: RpcQueryRequestVariant9RequestType, }, Variant10 { account_id: AccountId, finality: Finality, include_proof: Option<bool>, prefix_base64: String, request_type: RpcQueryRequestVariant10RequestType, }, Variant11 { account_id: AccountId, finality: Finality, public_key: PublicKey, request_type: RpcQueryRequestVariant11RequestType, }, Variant12 { account_id: AccountId, finality: Finality, request_type: RpcQueryRequestVariant12RequestType, }, Variant13 { account_id: AccountId, args_base64: String, finality: Finality, method_name: String, request_type: RpcQueryRequestVariant13RequestType, }, Variant14 { code_hash: CryptoHash, finality: Finality, request_type: RpcQueryRequestVariant14RequestType, }, Variant15 { account_id: AccountId, finality: Finality, request_type: RpcQueryRequestVariant15RequestType, }, Variant16 { account_id: AccountId, request_type: RpcQueryRequestVariant16RequestType, sync_checkpoint: SyncCheckpoint, }, Variant17 { account_id: AccountId, request_type: RpcQueryRequestVariant17RequestType, sync_checkpoint: SyncCheckpoint, }, Variant18 { account_id: AccountId, include_proof: Option<bool>, prefix_base64: String, request_type: RpcQueryRequestVariant18RequestType, sync_checkpoint: SyncCheckpoint, }, Variant19 { account_id: AccountId, public_key: PublicKey, request_type: RpcQueryRequestVariant19RequestType, sync_checkpoint: SyncCheckpoint, }, Variant20 { account_id: AccountId, request_type: RpcQueryRequestVariant20RequestType, sync_checkpoint: SyncCheckpoint, }, Variant21 { account_id: AccountId, args_base64: String, method_name: String, request_type: RpcQueryRequestVariant21RequestType, sync_checkpoint: SyncCheckpoint, }, Variant22 { code_hash: CryptoHash, request_type: RpcQueryRequestVariant22RequestType, sync_checkpoint: SyncCheckpoint, }, Variant23 { account_id: AccountId, request_type: RpcQueryRequestVariant23RequestType, sync_checkpoint: SyncCheckpoint, },
}
Expand description

RpcQueryRequest

JSON schema
{
 "title": "RpcQueryRequest",
 "type": "object",
 "oneOf": [
   {
     "allOf": [
       {
         "type": "object",
         "required": [
           "block_id"
         ],
         "properties": {
           "block_id": {
             "$ref": "#/components/schemas/BlockId"
           }
         }
       },
       {
         "type": "object",
         "required": [
           "account_id",
           "request_type"
         ],
         "properties": {
           "account_id": {
             "$ref": "#/components/schemas/AccountId"
           },
           "request_type": {
             "type": "string",
             "enum": [
               "view_account"
             ]
           }
         }
       }
     ]
   },
   {
     "allOf": [
       {
         "type": "object",
         "required": [
           "block_id"
         ],
         "properties": {
           "block_id": {
             "$ref": "#/components/schemas/BlockId"
           }
         }
       },
       {
         "type": "object",
         "required": [
           "account_id",
           "request_type"
         ],
         "properties": {
           "account_id": {
             "$ref": "#/components/schemas/AccountId"
           },
           "request_type": {
             "type": "string",
             "enum": [
               "view_code"
             ]
           }
         }
       }
     ]
   },
   {
     "allOf": [
       {
         "type": "object",
         "required": [
           "block_id"
         ],
         "properties": {
           "block_id": {
             "$ref": "#/components/schemas/BlockId"
           }
         }
       },
       {
         "type": "object",
         "required": [
           "account_id",
           "prefix_base64",
           "request_type"
         ],
         "properties": {
           "account_id": {
             "$ref": "#/components/schemas/AccountId"
           },
           "include_proof": {
             "type": "boolean"
           },
           "prefix_base64": {
             "type": "string",
             "format": "bytes"
           },
           "request_type": {
             "type": "string",
             "enum": [
               "view_state"
             ]
           }
         }
       }
     ]
   },
   {
     "allOf": [
       {
         "type": "object",
         "required": [
           "block_id"
         ],
         "properties": {
           "block_id": {
             "$ref": "#/components/schemas/BlockId"
           }
         }
       },
       {
         "type": "object",
         "required": [
           "account_id",
           "public_key",
           "request_type"
         ],
         "properties": {
           "account_id": {
             "$ref": "#/components/schemas/AccountId"
           },
           "public_key": {
             "$ref": "#/components/schemas/PublicKey"
           },
           "request_type": {
             "type": "string",
             "enum": [
               "view_access_key"
             ]
           }
         }
       }
     ]
   },
   {
     "allOf": [
       {
         "type": "object",
         "required": [
           "block_id"
         ],
         "properties": {
           "block_id": {
             "$ref": "#/components/schemas/BlockId"
           }
         }
       },
       {
         "type": "object",
         "required": [
           "account_id",
           "request_type"
         ],
         "properties": {
           "account_id": {
             "$ref": "#/components/schemas/AccountId"
           },
           "request_type": {
             "type": "string",
             "enum": [
               "view_access_key_list"
             ]
           }
         }
       }
     ]
   },
   {
     "allOf": [
       {
         "type": "object",
         "required": [
           "block_id"
         ],
         "properties": {
           "block_id": {
             "$ref": "#/components/schemas/BlockId"
           }
         }
       },
       {
         "type": "object",
         "required": [
           "account_id",
           "args_base64",
           "method_name",
           "request_type"
         ],
         "properties": {
           "account_id": {
             "$ref": "#/components/schemas/AccountId"
           },
           "args_base64": {
             "type": "string",
             "format": "bytes"
           },
           "method_name": {
             "type": "string"
           },
           "request_type": {
             "type": "string",
             "enum": [
               "call_function"
             ]
           }
         }
       }
     ]
   },
   {
     "allOf": [
       {
         "type": "object",
         "required": [
           "block_id"
         ],
         "properties": {
           "block_id": {
             "$ref": "#/components/schemas/BlockId"
           }
         }
       },
       {
         "type": "object",
         "required": [
           "code_hash",
           "request_type"
         ],
         "properties": {
           "code_hash": {
             "$ref": "#/components/schemas/CryptoHash"
           },
           "request_type": {
             "type": "string",
             "enum": [
               "view_global_contract_code"
             ]
           }
         }
       }
     ]
   },
   {
     "allOf": [
       {
         "type": "object",
         "required": [
           "block_id"
         ],
         "properties": {
           "block_id": {
             "$ref": "#/components/schemas/BlockId"
           }
         }
       },
       {
         "type": "object",
         "required": [
           "account_id",
           "request_type"
         ],
         "properties": {
           "account_id": {
             "$ref": "#/components/schemas/AccountId"
           },
           "request_type": {
             "type": "string",
             "enum": [
               "view_global_contract_code_by_account_id"
             ]
           }
         }
       }
     ]
   },
   {
     "allOf": [
       {
         "type": "object",
         "required": [
           "finality"
         ],
         "properties": {
           "finality": {
             "$ref": "#/components/schemas/Finality"
           }
         }
       },
       {
         "type": "object",
         "required": [
           "account_id",
           "request_type"
         ],
         "properties": {
           "account_id": {
             "$ref": "#/components/schemas/AccountId"
           },
           "request_type": {
             "type": "string",
             "enum": [
               "view_account"
             ]
           }
         }
       }
     ]
   },
   {
     "allOf": [
       {
         "type": "object",
         "required": [
           "finality"
         ],
         "properties": {
           "finality": {
             "$ref": "#/components/schemas/Finality"
           }
         }
       },
       {
         "type": "object",
         "required": [
           "account_id",
           "request_type"
         ],
         "properties": {
           "account_id": {
             "$ref": "#/components/schemas/AccountId"
           },
           "request_type": {
             "type": "string",
             "enum": [
               "view_code"
             ]
           }
         }
       }
     ]
   },
   {
     "allOf": [
       {
         "type": "object",
         "required": [
           "finality"
         ],
         "properties": {
           "finality": {
             "$ref": "#/components/schemas/Finality"
           }
         }
       },
       {
         "type": "object",
         "required": [
           "account_id",
           "prefix_base64",
           "request_type"
         ],
         "properties": {
           "account_id": {
             "$ref": "#/components/schemas/AccountId"
           },
           "include_proof": {
             "type": "boolean"
           },
           "prefix_base64": {
             "type": "string",
             "format": "bytes"
           },
           "request_type": {
             "type": "string",
             "enum": [
               "view_state"
             ]
           }
         }
       }
     ]
   },
   {
     "allOf": [
       {
         "type": "object",
         "required": [
           "finality"
         ],
         "properties": {
           "finality": {
             "$ref": "#/components/schemas/Finality"
           }
         }
       },
       {
         "type": "object",
         "required": [
           "account_id",
           "public_key",
           "request_type"
         ],
         "properties": {
           "account_id": {
             "$ref": "#/components/schemas/AccountId"
           },
           "public_key": {
             "$ref": "#/components/schemas/PublicKey"
           },
           "request_type": {
             "type": "string",
             "enum": [
               "view_access_key"
             ]
           }
         }
       }
     ]
   },
   {
     "allOf": [
       {
         "type": "object",
         "required": [
           "finality"
         ],
         "properties": {
           "finality": {
             "$ref": "#/components/schemas/Finality"
           }
         }
       },
       {
         "type": "object",
         "required": [
           "account_id",
           "request_type"
         ],
         "properties": {
           "account_id": {
             "$ref": "#/components/schemas/AccountId"
           },
           "request_type": {
             "type": "string",
             "enum": [
               "view_access_key_list"
             ]
           }
         }
       }
     ]
   },
   {
     "allOf": [
       {
         "type": "object",
         "required": [
           "finality"
         ],
         "properties": {
           "finality": {
             "$ref": "#/components/schemas/Finality"
           }
         }
       },
       {
         "type": "object",
         "required": [
           "account_id",
           "args_base64",
           "method_name",
           "request_type"
         ],
         "properties": {
           "account_id": {
             "$ref": "#/components/schemas/AccountId"
           },
           "args_base64": {
             "type": "string",
             "format": "bytes"
           },
           "method_name": {
             "type": "string"
           },
           "request_type": {
             "type": "string",
             "enum": [
               "call_function"
             ]
           }
         }
       }
     ]
   },
   {
     "allOf": [
       {
         "type": "object",
         "required": [
           "finality"
         ],
         "properties": {
           "finality": {
             "$ref": "#/components/schemas/Finality"
           }
         }
       },
       {
         "type": "object",
         "required": [
           "code_hash",
           "request_type"
         ],
         "properties": {
           "code_hash": {
             "$ref": "#/components/schemas/CryptoHash"
           },
           "request_type": {
             "type": "string",
             "enum": [
               "view_global_contract_code"
             ]
           }
         }
       }
     ]
   },
   {
     "allOf": [
       {
         "type": "object",
         "required": [
           "finality"
         ],
         "properties": {
           "finality": {
             "$ref": "#/components/schemas/Finality"
           }
         }
       },
       {
         "type": "object",
         "required": [
           "account_id",
           "request_type"
         ],
         "properties": {
           "account_id": {
             "$ref": "#/components/schemas/AccountId"
           },
           "request_type": {
             "type": "string",
             "enum": [
               "view_global_contract_code_by_account_id"
             ]
           }
         }
       }
     ]
   },
   {
     "allOf": [
       {
         "type": "object",
         "required": [
           "sync_checkpoint"
         ],
         "properties": {
           "sync_checkpoint": {
             "$ref": "#/components/schemas/SyncCheckpoint"
           }
         }
       },
       {
         "type": "object",
         "required": [
           "account_id",
           "request_type"
         ],
         "properties": {
           "account_id": {
             "$ref": "#/components/schemas/AccountId"
           },
           "request_type": {
             "type": "string",
             "enum": [
               "view_account"
             ]
           }
         }
       }
     ]
   },
   {
     "allOf": [
       {
         "type": "object",
         "required": [
           "sync_checkpoint"
         ],
         "properties": {
           "sync_checkpoint": {
             "$ref": "#/components/schemas/SyncCheckpoint"
           }
         }
       },
       {
         "type": "object",
         "required": [
           "account_id",
           "request_type"
         ],
         "properties": {
           "account_id": {
             "$ref": "#/components/schemas/AccountId"
           },
           "request_type": {
             "type": "string",
             "enum": [
               "view_code"
             ]
           }
         }
       }
     ]
   },
   {
     "allOf": [
       {
         "type": "object",
         "required": [
           "sync_checkpoint"
         ],
         "properties": {
           "sync_checkpoint": {
             "$ref": "#/components/schemas/SyncCheckpoint"
           }
         }
       },
       {
         "type": "object",
         "required": [
           "account_id",
           "prefix_base64",
           "request_type"
         ],
         "properties": {
           "account_id": {
             "$ref": "#/components/schemas/AccountId"
           },
           "include_proof": {
             "type": "boolean"
           },
           "prefix_base64": {
             "type": "string",
             "format": "bytes"
           },
           "request_type": {
             "type": "string",
             "enum": [
               "view_state"
             ]
           }
         }
       }
     ]
   },
   {
     "allOf": [
       {
         "type": "object",
         "required": [
           "sync_checkpoint"
         ],
         "properties": {
           "sync_checkpoint": {
             "$ref": "#/components/schemas/SyncCheckpoint"
           }
         }
       },
       {
         "type": "object",
         "required": [
           "account_id",
           "public_key",
           "request_type"
         ],
         "properties": {
           "account_id": {
             "$ref": "#/components/schemas/AccountId"
           },
           "public_key": {
             "$ref": "#/components/schemas/PublicKey"
           },
           "request_type": {
             "type": "string",
             "enum": [
               "view_access_key"
             ]
           }
         }
       }
     ]
   },
   {
     "allOf": [
       {
         "type": "object",
         "required": [
           "sync_checkpoint"
         ],
         "properties": {
           "sync_checkpoint": {
             "$ref": "#/components/schemas/SyncCheckpoint"
           }
         }
       },
       {
         "type": "object",
         "required": [
           "account_id",
           "request_type"
         ],
         "properties": {
           "account_id": {
             "$ref": "#/components/schemas/AccountId"
           },
           "request_type": {
             "type": "string",
             "enum": [
               "view_access_key_list"
             ]
           }
         }
       }
     ]
   },
   {
     "allOf": [
       {
         "type": "object",
         "required": [
           "sync_checkpoint"
         ],
         "properties": {
           "sync_checkpoint": {
             "$ref": "#/components/schemas/SyncCheckpoint"
           }
         }
       },
       {
         "type": "object",
         "required": [
           "account_id",
           "args_base64",
           "method_name",
           "request_type"
         ],
         "properties": {
           "account_id": {
             "$ref": "#/components/schemas/AccountId"
           },
           "args_base64": {
             "type": "string",
             "format": "bytes"
           },
           "method_name": {
             "type": "string"
           },
           "request_type": {
             "type": "string",
             "enum": [
               "call_function"
             ]
           }
         }
       }
     ]
   },
   {
     "allOf": [
       {
         "type": "object",
         "required": [
           "sync_checkpoint"
         ],
         "properties": {
           "sync_checkpoint": {
             "$ref": "#/components/schemas/SyncCheckpoint"
           }
         }
       },
       {
         "type": "object",
         "required": [
           "code_hash",
           "request_type"
         ],
         "properties": {
           "code_hash": {
             "$ref": "#/components/schemas/CryptoHash"
           },
           "request_type": {
             "type": "string",
             "enum": [
               "view_global_contract_code"
             ]
           }
         }
       }
     ]
   },
   {
     "allOf": [
       {
         "type": "object",
         "required": [
           "sync_checkpoint"
         ],
         "properties": {
           "sync_checkpoint": {
             "$ref": "#/components/schemas/SyncCheckpoint"
           }
         }
       },
       {
         "type": "object",
         "required": [
           "account_id",
           "request_type"
         ],
         "properties": {
           "account_id": {
             "$ref": "#/components/schemas/AccountId"
           },
           "request_type": {
             "type": "string",
             "enum": [
               "view_global_contract_code_by_account_id"
             ]
           }
         }
       }
     ]
   }
 ]
}

Variants§

§

Variant0

Fields

§account_id: AccountId
§block_id: BlockId
§

Variant1

Fields

§account_id: AccountId
§block_id: BlockId
§

Variant2

Fields

§account_id: AccountId
§block_id: BlockId
§include_proof: Option<bool>
§prefix_base64: String
§

Variant3

Fields

§account_id: AccountId
§block_id: BlockId
§public_key: PublicKey
§

Variant4

Fields

§account_id: AccountId
§block_id: BlockId
§

Variant5

Fields

§account_id: AccountId
§args_base64: String
§block_id: BlockId
§method_name: String
§

Variant6

Fields

§block_id: BlockId
§code_hash: CryptoHash
§

Variant7

Fields

§account_id: AccountId
§block_id: BlockId
§

Variant8

Fields

§account_id: AccountId
§finality: Finality
§

Variant9

Fields

§account_id: AccountId
§finality: Finality
§

Variant10

Fields

§account_id: AccountId
§finality: Finality
§include_proof: Option<bool>
§prefix_base64: String
§

Variant11

Fields

§account_id: AccountId
§finality: Finality
§public_key: PublicKey
§

Variant12

Fields

§account_id: AccountId
§finality: Finality
§

Variant13

Fields

§account_id: AccountId
§args_base64: String
§finality: Finality
§method_name: String
§

Variant14

Fields

§code_hash: CryptoHash
§finality: Finality
§

Variant15

Fields

§account_id: AccountId
§finality: Finality
§

Variant16

Fields

§account_id: AccountId
§sync_checkpoint: SyncCheckpoint
§

Variant17

Fields

§account_id: AccountId
§sync_checkpoint: SyncCheckpoint
§

Variant18

Fields

§account_id: AccountId
§include_proof: Option<bool>
§prefix_base64: String
§sync_checkpoint: SyncCheckpoint
§

Variant19

Fields

§account_id: AccountId
§public_key: PublicKey
§sync_checkpoint: SyncCheckpoint
§

Variant20

Fields

§account_id: AccountId
§sync_checkpoint: SyncCheckpoint
§

Variant21

Fields

§account_id: AccountId
§args_base64: String
§method_name: String
§sync_checkpoint: SyncCheckpoint
§

Variant22

Fields

§code_hash: CryptoHash
§sync_checkpoint: SyncCheckpoint
§

Variant23

Fields

§account_id: AccountId
§sync_checkpoint: SyncCheckpoint

Trait Implementations§

Source§

impl Clone for RpcQueryRequest

Source§

fn clone(&self) -> RpcQueryRequest

Returns a duplicate of the value. Read more
1.0.0 · Source§

const fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for RpcQueryRequest

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
Source§

impl<'de> Deserialize<'de> for RpcQueryRequest

Source§

fn deserialize<__D>( __deserializer: __D, ) -> Result<RpcQueryRequest, <__D as Deserializer<'de>>::Error>
where __D: Deserializer<'de>,

Deserialize this value from the given Serde deserializer. Read more
Source§

impl From<&RpcQueryRequest> for RpcQueryRequest

Source§

fn from(value: &RpcQueryRequest) -> RpcQueryRequest

Converts to this type from the input type.
Source§

impl Serialize for RpcQueryRequest

Source§

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§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T> Instrument for T

Source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
Source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> PolicyExt for T
where T: ?Sized,

Source§

fn and<P, B, E>(self, other: P) -> And<T, P>
where T: Policy<B, E>, P: Policy<B, E>,

Create a new Policy that returns Action::Follow only if self and other return Action::Follow. Read more
Source§

fn or<P, B, E>(self, other: P) -> Or<T, P>
where T: Policy<B, E>, P: Policy<B, E>,

Create a new Policy that returns Action::Follow if either self or other returns Action::Follow. Read more
Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<T> WithSubscriber for T

Source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
Source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more
Source§

impl<T> DeserializeOwned for T
where T: for<'de> Deserialize<'de>,

Source§

impl<T> ErasedDestructor for T
where T: 'static,