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§fn clone_from(&mut self, source: &Self)
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<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<&RpcQueryResponse> for RpcQueryResponse
impl From<&RpcQueryResponse> for RpcQueryResponse
Source§fn from(value: &RpcQueryResponse) -> Self
fn from(value: &RpcQueryResponse) -> Self
Converts to this type from the input type.
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