pub enum RpcStateChangesInBlockByTypeRequest {
Show 15 variants
Variant0 {
account_ids: Vec<AccountId>,
block_id: BlockId,
changes_type: RpcStateChangesInBlockByTypeRequestVariant0ChangesType,
},
Variant1 {
block_id: BlockId,
changes_type: RpcStateChangesInBlockByTypeRequestVariant1ChangesType,
keys: Vec<AccountWithPublicKey>,
},
Variant2 {
account_ids: Vec<AccountId>,
block_id: BlockId,
changes_type: RpcStateChangesInBlockByTypeRequestVariant2ChangesType,
},
Variant3 {
account_ids: Vec<AccountId>,
block_id: BlockId,
changes_type: RpcStateChangesInBlockByTypeRequestVariant3ChangesType,
},
Variant4 {
account_ids: Vec<AccountId>,
block_id: BlockId,
changes_type: RpcStateChangesInBlockByTypeRequestVariant4ChangesType,
key_prefix_base64: String,
},
Variant5 {
account_ids: Vec<AccountId>,
changes_type: RpcStateChangesInBlockByTypeRequestVariant5ChangesType,
finality: Finality,
},
Variant6 {
changes_type: RpcStateChangesInBlockByTypeRequestVariant6ChangesType,
finality: Finality,
keys: Vec<AccountWithPublicKey>,
},
Variant7 {
account_ids: Vec<AccountId>,
changes_type: RpcStateChangesInBlockByTypeRequestVariant7ChangesType,
finality: Finality,
},
Variant8 {
account_ids: Vec<AccountId>,
changes_type: RpcStateChangesInBlockByTypeRequestVariant8ChangesType,
finality: Finality,
},
Variant9 {
account_ids: Vec<AccountId>,
changes_type: RpcStateChangesInBlockByTypeRequestVariant9ChangesType,
finality: Finality,
key_prefix_base64: String,
},
Variant10 {
account_ids: Vec<AccountId>,
changes_type: RpcStateChangesInBlockByTypeRequestVariant10ChangesType,
sync_checkpoint: SyncCheckpoint,
},
Variant11 {
changes_type: RpcStateChangesInBlockByTypeRequestVariant11ChangesType,
keys: Vec<AccountWithPublicKey>,
sync_checkpoint: SyncCheckpoint,
},
Variant12 {
account_ids: Vec<AccountId>,
changes_type: RpcStateChangesInBlockByTypeRequestVariant12ChangesType,
sync_checkpoint: SyncCheckpoint,
},
Variant13 {
account_ids: Vec<AccountId>,
changes_type: RpcStateChangesInBlockByTypeRequestVariant13ChangesType,
sync_checkpoint: SyncCheckpoint,
},
Variant14 {
account_ids: Vec<AccountId>,
changes_type: RpcStateChangesInBlockByTypeRequestVariant14ChangesType,
key_prefix_base64: String,
sync_checkpoint: SyncCheckpoint,
},
}Expand description
It is a serializable view of StateChangesRequest.
JSON schema
{
"title": "RpcStateChangesInBlockByTypeRequest",
"description": "It is a [serializable view] of [`StateChangesRequest`].\n\n [serializable view]: ./index.html\n [`StateChangesRequest`]: ../types/struct.StateChangesRequest.html",
"type": "object",
"oneOf": [
{
"allOf": [
{
"type": "object",
"required": [
"block_id"
],
"properties": {
"block_id": {
"$ref": "#/components/schemas/BlockId"
}
}
},
{
"type": "object",
"required": [
"account_ids",
"changes_type"
],
"properties": {
"account_ids": {
"type": "array",
"items": {
"$ref": "#/components/schemas/AccountId"
}
},
"changes_type": {
"type": "string",
"enum": [
"account_changes"
]
}
}
}
]
},
{
"allOf": [
{
"type": "object",
"required": [
"block_id"
],
"properties": {
"block_id": {
"$ref": "#/components/schemas/BlockId"
}
}
},
{
"type": "object",
"required": [
"changes_type",
"keys"
],
"properties": {
"changes_type": {
"type": "string",
"enum": [
"single_access_key_changes"
]
},
"keys": {
"type": "array",
"items": {
"$ref": "#/components/schemas/AccountWithPublicKey"
}
}
}
}
]
},
{
"allOf": [
{
"type": "object",
"required": [
"block_id"
],
"properties": {
"block_id": {
"$ref": "#/components/schemas/BlockId"
}
}
},
{
"type": "object",
"required": [
"account_ids",
"changes_type"
],
"properties": {
"account_ids": {
"type": "array",
"items": {
"$ref": "#/components/schemas/AccountId"
}
},
"changes_type": {
"type": "string",
"enum": [
"all_access_key_changes"
]
}
}
}
]
},
{
"allOf": [
{
"type": "object",
"required": [
"block_id"
],
"properties": {
"block_id": {
"$ref": "#/components/schemas/BlockId"
}
}
},
{
"type": "object",
"required": [
"account_ids",
"changes_type"
],
"properties": {
"account_ids": {
"type": "array",
"items": {
"$ref": "#/components/schemas/AccountId"
}
},
"changes_type": {
"type": "string",
"enum": [
"contract_code_changes"
]
}
}
}
]
},
{
"allOf": [
{
"type": "object",
"required": [
"block_id"
],
"properties": {
"block_id": {
"$ref": "#/components/schemas/BlockId"
}
}
},
{
"type": "object",
"required": [
"account_ids",
"changes_type",
"key_prefix_base64"
],
"properties": {
"account_ids": {
"type": "array",
"items": {
"$ref": "#/components/schemas/AccountId"
}
},
"changes_type": {
"type": "string",
"enum": [
"data_changes"
]
},
"key_prefix_base64": {
"type": "string",
"format": "bytes"
}
}
}
]
},
{
"allOf": [
{
"type": "object",
"required": [
"finality"
],
"properties": {
"finality": {
"$ref": "#/components/schemas/Finality"
}
}
},
{
"type": "object",
"required": [
"account_ids",
"changes_type"
],
"properties": {
"account_ids": {
"type": "array",
"items": {
"$ref": "#/components/schemas/AccountId"
}
},
"changes_type": {
"type": "string",
"enum": [
"account_changes"
]
}
}
}
]
},
{
"allOf": [
{
"type": "object",
"required": [
"finality"
],
"properties": {
"finality": {
"$ref": "#/components/schemas/Finality"
}
}
},
{
"type": "object",
"required": [
"changes_type",
"keys"
],
"properties": {
"changes_type": {
"type": "string",
"enum": [
"single_access_key_changes"
]
},
"keys": {
"type": "array",
"items": {
"$ref": "#/components/schemas/AccountWithPublicKey"
}
}
}
}
]
},
{
"allOf": [
{
"type": "object",
"required": [
"finality"
],
"properties": {
"finality": {
"$ref": "#/components/schemas/Finality"
}
}
},
{
"type": "object",
"required": [
"account_ids",
"changes_type"
],
"properties": {
"account_ids": {
"type": "array",
"items": {
"$ref": "#/components/schemas/AccountId"
}
},
"changes_type": {
"type": "string",
"enum": [
"all_access_key_changes"
]
}
}
}
]
},
{
"allOf": [
{
"type": "object",
"required": [
"finality"
],
"properties": {
"finality": {
"$ref": "#/components/schemas/Finality"
}
}
},
{
"type": "object",
"required": [
"account_ids",
"changes_type"
],
"properties": {
"account_ids": {
"type": "array",
"items": {
"$ref": "#/components/schemas/AccountId"
}
},
"changes_type": {
"type": "string",
"enum": [
"contract_code_changes"
]
}
}
}
]
},
{
"allOf": [
{
"type": "object",
"required": [
"finality"
],
"properties": {
"finality": {
"$ref": "#/components/schemas/Finality"
}
}
},
{
"type": "object",
"required": [
"account_ids",
"changes_type",
"key_prefix_base64"
],
"properties": {
"account_ids": {
"type": "array",
"items": {
"$ref": "#/components/schemas/AccountId"
}
},
"changes_type": {
"type": "string",
"enum": [
"data_changes"
]
},
"key_prefix_base64": {
"type": "string",
"format": "bytes"
}
}
}
]
},
{
"allOf": [
{
"type": "object",
"required": [
"sync_checkpoint"
],
"properties": {
"sync_checkpoint": {
"$ref": "#/components/schemas/SyncCheckpoint"
}
}
},
{
"type": "object",
"required": [
"account_ids",
"changes_type"
],
"properties": {
"account_ids": {
"type": "array",
"items": {
"$ref": "#/components/schemas/AccountId"
}
},
"changes_type": {
"type": "string",
"enum": [
"account_changes"
]
}
}
}
]
},
{
"allOf": [
{
"type": "object",
"required": [
"sync_checkpoint"
],
"properties": {
"sync_checkpoint": {
"$ref": "#/components/schemas/SyncCheckpoint"
}
}
},
{
"type": "object",
"required": [
"changes_type",
"keys"
],
"properties": {
"changes_type": {
"type": "string",
"enum": [
"single_access_key_changes"
]
},
"keys": {
"type": "array",
"items": {
"$ref": "#/components/schemas/AccountWithPublicKey"
}
}
}
}
]
},
{
"allOf": [
{
"type": "object",
"required": [
"sync_checkpoint"
],
"properties": {
"sync_checkpoint": {
"$ref": "#/components/schemas/SyncCheckpoint"
}
}
},
{
"type": "object",
"required": [
"account_ids",
"changes_type"
],
"properties": {
"account_ids": {
"type": "array",
"items": {
"$ref": "#/components/schemas/AccountId"
}
},
"changes_type": {
"type": "string",
"enum": [
"all_access_key_changes"
]
}
}
}
]
},
{
"allOf": [
{
"type": "object",
"required": [
"sync_checkpoint"
],
"properties": {
"sync_checkpoint": {
"$ref": "#/components/schemas/SyncCheckpoint"
}
}
},
{
"type": "object",
"required": [
"account_ids",
"changes_type"
],
"properties": {
"account_ids": {
"type": "array",
"items": {
"$ref": "#/components/schemas/AccountId"
}
},
"changes_type": {
"type": "string",
"enum": [
"contract_code_changes"
]
}
}
}
]
},
{
"allOf": [
{
"type": "object",
"required": [
"sync_checkpoint"
],
"properties": {
"sync_checkpoint": {
"$ref": "#/components/schemas/SyncCheckpoint"
}
}
},
{
"type": "object",
"required": [
"account_ids",
"changes_type",
"key_prefix_base64"
],
"properties": {
"account_ids": {
"type": "array",
"items": {
"$ref": "#/components/schemas/AccountId"
}
},
"changes_type": {
"type": "string",
"enum": [
"data_changes"
]
},
"key_prefix_base64": {
"type": "string",
"format": "bytes"
}
}
}
]
}
]
}Variants§
Variant0
Fields
§
changes_type: RpcStateChangesInBlockByTypeRequestVariant0ChangesTypeVariant1
Fields
§
changes_type: RpcStateChangesInBlockByTypeRequestVariant1ChangesType§
keys: Vec<AccountWithPublicKey>Variant2
Fields
§
changes_type: RpcStateChangesInBlockByTypeRequestVariant2ChangesTypeVariant3
Fields
§
changes_type: RpcStateChangesInBlockByTypeRequestVariant3ChangesTypeVariant4
Fields
§
changes_type: RpcStateChangesInBlockByTypeRequestVariant4ChangesTypeVariant5
Fields
§
changes_type: RpcStateChangesInBlockByTypeRequestVariant5ChangesTypeVariant6
Fields
§
changes_type: RpcStateChangesInBlockByTypeRequestVariant6ChangesType§
keys: Vec<AccountWithPublicKey>Variant7
Fields
§
changes_type: RpcStateChangesInBlockByTypeRequestVariant7ChangesTypeVariant8
Fields
§
changes_type: RpcStateChangesInBlockByTypeRequestVariant8ChangesTypeVariant9
Fields
§
changes_type: RpcStateChangesInBlockByTypeRequestVariant9ChangesTypeVariant10
Fields
§
changes_type: RpcStateChangesInBlockByTypeRequestVariant10ChangesType§
sync_checkpoint: SyncCheckpointVariant11
Fields
§
changes_type: RpcStateChangesInBlockByTypeRequestVariant11ChangesType§
keys: Vec<AccountWithPublicKey>§
sync_checkpoint: SyncCheckpointVariant12
Fields
§
changes_type: RpcStateChangesInBlockByTypeRequestVariant12ChangesType§
sync_checkpoint: SyncCheckpointVariant13
Fields
§
changes_type: RpcStateChangesInBlockByTypeRequestVariant13ChangesType§
sync_checkpoint: SyncCheckpointVariant14
Fields
§
changes_type: RpcStateChangesInBlockByTypeRequestVariant14ChangesType§
sync_checkpoint: SyncCheckpointTrait Implementations§
Source§impl Clone for RpcStateChangesInBlockByTypeRequest
impl Clone for RpcStateChangesInBlockByTypeRequest
Source§fn clone(&self) -> RpcStateChangesInBlockByTypeRequest
fn clone(&self) -> RpcStateChangesInBlockByTypeRequest
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 RpcStateChangesInBlockByTypeRequest
impl<'de> Deserialize<'de> for RpcStateChangesInBlockByTypeRequest
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<RpcStateChangesInBlockByTypeRequest, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<RpcStateChangesInBlockByTypeRequest, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl From<&RpcStateChangesInBlockByTypeRequest> for RpcStateChangesInBlockByTypeRequest
impl From<&RpcStateChangesInBlockByTypeRequest> for RpcStateChangesInBlockByTypeRequest
Source§fn from(
value: &RpcStateChangesInBlockByTypeRequest,
) -> RpcStateChangesInBlockByTypeRequest
fn from( value: &RpcStateChangesInBlockByTypeRequest, ) -> RpcStateChangesInBlockByTypeRequest
Converts to this type from the input type.
Source§impl Serialize for RpcStateChangesInBlockByTypeRequest
impl Serialize for RpcStateChangesInBlockByTypeRequest
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 RpcStateChangesInBlockByTypeRequest
impl RefUnwindSafe for RpcStateChangesInBlockByTypeRequest
impl Send for RpcStateChangesInBlockByTypeRequest
impl Sync for RpcStateChangesInBlockByTypeRequest
impl Unpin for RpcStateChangesInBlockByTypeRequest
impl UnwindSafe for RpcStateChangesInBlockByTypeRequest
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