pub struct AccountState {
pub balance: U256,
pub nonce: u64,
pub root: B256,
pub code_hash: B256,
pub code: Option<Bytes>,
pub storage: Option<BTreeMap<StorageKey, StorageValue>>,
pub address: Option<Address>,
pub address_hash: Option<B256>,
}Expand description
Represents the state of an account in the Ethereum state trie.
Fields§
§balance: U256The balance of the account
nonce: u64The nonce of the account
root: B256The root hash of the account
code_hash: B256The code hash of the account
code: Option<Bytes>The code of the account
storage: Option<BTreeMap<StorageKey, StorageValue>>A map of storage slots, indexed by storage key
address: Option<Address>Address only present in iterative (line-by-line) mode
address_hash: Option<B256>If we don’t have address, we can output the key
Trait Implementations§
Source§impl Clone for AccountState
impl Clone for AccountState
Source§fn clone(&self) -> AccountState
fn clone(&self) -> AccountState
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 AccountState
impl Debug for AccountState
Source§impl Default for AccountState
impl Default for AccountState
Source§fn default() -> AccountState
fn default() -> AccountState
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for AccountState
impl<'de> Deserialize<'de> for AccountState
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 PartialEq for AccountState
impl PartialEq for AccountState
Source§impl Serialize for AccountState
impl Serialize for AccountState
impl Eq for AccountState
impl StructuralPartialEq for AccountState
Auto Trait Implementations§
impl !Freeze for AccountState
impl RefUnwindSafe for AccountState
impl Send for AccountState
impl Sync for AccountState
impl Unpin for AccountState
impl UnwindSafe for AccountState
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Layout§
Note: Most layout information is completely unstable and may even differ between compilations. The only exception is types with certain repr(...) attributes. Please see the Rust Reference's “Type Layout” chapter for details on type layout guarantees.
Size: 224 bytes