pub enum TrieKey {
Account {
account_id: AccountId,
},
ContractCode {
account_id: AccountId,
},
AccessKey {
account_id: AccountId,
public_key: PublicKey,
},
ReceivedData {
receiver_id: AccountId,
data_id: CryptoHash,
},
PostponedReceiptId {
receiver_id: AccountId,
data_id: CryptoHash,
},
PendingDataCount {
receiver_id: AccountId,
receipt_id: CryptoHash,
},
PostponedReceipt {
receiver_id: AccountId,
receipt_id: CryptoHash,
},
DelayedReceiptIndices,
DelayedReceipt {
index: u64,
},
ContractData {
account_id: AccountId,
key: Vec<u8>,
},
Rsa2048Keys {
account_id: AccountId,
public_key: PublicKey,
},
}Expand description
Describes the key of a specific key-value record in a state trie.
Variants§
Account
Used to store primitives::account::Account struct for a given AccountId.
ContractCode
Used to store Vec<u8> contract code for a given AccountId.
AccessKey
Used to store primitives::account::AccessKey struct for a given AccountId and
a given public_key of the AccessKey.
ReceivedData
Used to store primitives::receipt::ReceivedData struct for a given receiver’s AccountId
of DataReceipt and a given data_id (the unique identifier for the data).
NOTE: This is one of the input data for some action receipt.
The action receipt might be still not be received or requires more pending input data.
PostponedReceiptId
Used to store receipt ID primitives::hash::CryptoHash for a given receiver’s AccountId
of the receipt and a given data_id (the unique identifier for the required input data).
NOTE: This receipt ID indicates the postponed receipt. We store receipt_id for performance
purposes to avoid deserializing the entire receipt.
PendingDataCount
Used to store the number of still missing input data u32 for a given receiver’s
AccountId and a given receipt_id of the receipt.
PostponedReceipt
Used to store the postponed receipt primitives::receipt::Receipt for a given receiver’s
AccountId and a given receipt_id of the receipt.
DelayedReceiptIndices
Used to store indices of the delayed receipts queue (node-runtime::DelayedReceiptIndices).
NOTE: It is a singleton per shard.
DelayedReceipt
Used to store a delayed receipt primitives::receipt::Receipt for a given index u64
in a delayed receipt queue. The queue is unique per shard.
ContractData
Used to store a key-value record Vec<u8> within a contract deployed on a given AccountId
and a given key.
Rsa2048Keys
ca rsakeys
Implementations§
Trait Implementations§
Source§impl BorshDeserialize for TrieKey
impl BorshDeserialize for TrieKey
fn deserialize_reader<__R: Read>(reader: &mut __R) -> Result<Self, Error>
Source§fn deserialize(buf: &mut &[u8]) -> Result<Self, Error>
fn deserialize(buf: &mut &[u8]) -> Result<Self, Error>
Source§fn try_from_slice(v: &[u8]) -> Result<Self, Error>
fn try_from_slice(v: &[u8]) -> Result<Self, Error>
fn try_from_reader<R>(reader: &mut R) -> Result<Self, Error>where
R: Read,
Source§impl BorshSerialize for TrieKey
impl BorshSerialize for TrieKey
impl Eq for TrieKey
impl StructuralPartialEq for TrieKey
Auto Trait Implementations§
impl Freeze for TrieKey
impl RefUnwindSafe for TrieKey
impl Send for TrieKey
impl Sync for TrieKey
impl Unpin for TrieKey
impl UnwindSafe for TrieKey
Blanket Implementations§
Source§impl<T> ArchivePointee for T
impl<T> ArchivePointee for T
Source§type ArchivedMetadata = ()
type ArchivedMetadata = ()
Source§fn pointer_metadata(
_: &<T as ArchivePointee>::ArchivedMetadata,
) -> <T as Pointee>::Metadata
fn pointer_metadata( _: &<T as ArchivePointee>::ArchivedMetadata, ) -> <T as Pointee>::Metadata
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<F, W, T, D> Deserialize<With<T, W>, D> for F
impl<F, W, T, D> Deserialize<With<T, W>, D> for F
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more