pub enum RpcQueryResponse {
Variant0 {
amount: String,
block_hash: CryptoHash,
block_height: u64,
code_hash: CryptoHash,
global_contract_account_id: Option<AccountId>,
global_contract_hash: Option<CryptoHash>,
locked: String,
storage_paid_at: u64,
storage_usage: u64,
},
Variant1 {
block_hash: CryptoHash,
block_height: u64,
code_base64: String,
hash: CryptoHash,
},
Variant2 {
block_hash: CryptoHash,
block_height: u64,
proof: Vec<String>,
values: Vec<StateItem>,
},
Variant3 {
block_hash: CryptoHash,
block_height: u64,
logs: Vec<String>,
result: Vec<u8>,
},
Variant4 {
block_hash: CryptoHash,
block_height: u64,
nonce: u64,
permission: AccessKeyPermissionView,
},
Variant5 {
block_hash: CryptoHash,
block_height: u64,
keys: Vec<AccessKeyInfoView>,
},
}Expand description
RpcQueryResponse
JSON schema
{
"type": "object",
"anyOf": [
{
"$ref": "#/components/schemas/AccountView"
},
{
"$ref": "#/components/schemas/ContractCodeView"
},
{
"$ref": "#/components/schemas/ViewStateResult"
},
{
"$ref": "#/components/schemas/CallResult"
},
{
"$ref": "#/components/schemas/AccessKeyView"
},
{
"$ref": "#/components/schemas/AccessKeyList"
}
],
"required": [
"block_hash",
"block_height"
],
"properties": {
"block_hash": {
"$ref": "#/components/schemas/CryptoHash"
},
"block_height": {
"type": "integer",
"format": "uint64",
"minimum": 0.0
}
}
}Variants§
Variant0
Variant1
Variant2
Variant3
Variant4
Variant5
Trait Implementations§
Source§impl Clone for RpcQueryResponse
impl Clone for RpcQueryResponse
Source§fn clone(&self) -> RpcQueryResponse
fn clone(&self) -> RpcQueryResponse
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 Debug for RpcQueryResponse
impl Debug for RpcQueryResponse
Source§impl<'de> Deserialize<'de> for RpcQueryResponse
impl<'de> Deserialize<'de> for RpcQueryResponse
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<RpcQueryResponse, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<RpcQueryResponse, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl From<&RpcQueryResponse> for RpcQueryResponse
impl From<&RpcQueryResponse> for RpcQueryResponse
Source§fn from(value: &RpcQueryResponse) -> RpcQueryResponse
fn from(value: &RpcQueryResponse) -> RpcQueryResponse
Converts to this type from the input type.
Source§impl Serialize for RpcQueryResponse
impl Serialize for RpcQueryResponse
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 RpcQueryResponse
impl RefUnwindSafe for RpcQueryResponse
impl Send for RpcQueryResponse
impl Sync for RpcQueryResponse
impl Unpin for RpcQueryResponse
impl UnwindSafe for RpcQueryResponse
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