pub struct TableItemRequest {
pub key_type: String,
pub value_type: String,
pub key: Option<Value>,
}Expand description
TableItemRequest : Table Item request for the GetTableItem API
Fields§
§key_type: StringString representation of an on-chain Move type tag that is exposed in transaction payload. Values: - bool - u8 - u16 - u32 - u64 - u128 - u256 - address - signer - vector: vector<{non-reference MoveTypeId}> - struct: {address}::{module_name}::{struct_name}::<{generic types}> Vector type value examples: - vector<u8> - vector<vector<u64>> - vector<0x1::coin::CoinStore<0x1::aptos_coin::AptosCoin>> Struct type value examples: - 0x1::coin::CoinStore<0x1::aptos_coin::AptosCoin> - 0x1::account::Account` Note: 1. Empty chars should be ignored when comparing 2 struct tag ids. 2. When used in an URL path, should be encoded by url-encoding (AKA percent-encoding).
value_type: StringString representation of an on-chain Move type tag that is exposed in transaction payload. Values: - bool - u8 - u16 - u32 - u64 - u128 - u256 - address - signer - vector: vector<{non-reference MoveTypeId}> - struct: {address}::{module_name}::{struct_name}::<{generic types}> Vector type value examples: - vector<u8> - vector<vector<u64>> - vector<0x1::coin::CoinStore<0x1::aptos_coin::AptosCoin>> Struct type value examples: - 0x1::coin::CoinStore<0x1::aptos_coin::AptosCoin> - 0x1::account::Account` Note: 1. Empty chars should be ignored when comparing 2 struct tag ids. 2. When used in an URL path, should be encoded by url-encoding (AKA percent-encoding).
key: Option<Value>The value of the table item’s key
Implementations§
Trait Implementations§
Source§impl Clone for TableItemRequest
impl Clone for TableItemRequest
Source§fn clone(&self) -> TableItemRequest
fn clone(&self) -> TableItemRequest
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for TableItemRequest
impl Debug for TableItemRequest
Source§impl Default for TableItemRequest
impl Default for TableItemRequest
Source§fn default() -> TableItemRequest
fn default() -> TableItemRequest
Source§impl<'de> Deserialize<'de> for TableItemRequest
impl<'de> Deserialize<'de> for TableItemRequest
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>,
Source§impl PartialEq for TableItemRequest
impl PartialEq for TableItemRequest
Source§fn eq(&self, other: &TableItemRequest) -> bool
fn eq(&self, other: &TableItemRequest) -> bool
self and other values to be equal, and is used by ==.