pub struct InMemoryAccount {
pub balance: U256,
pub code: Vec<u8>,
pub nonce: U256,
pub storage: BTreeMap<H256, H256>,
pub transient_storage: BTreeMap<H256, H256>,
}Expand description
In-memory account.
Fields§
§balance: U256Balance.
code: Vec<u8>Code.
nonce: U256Nonce.
storage: BTreeMap<H256, H256>Storage value mappings.
transient_storage: BTreeMap<H256, H256>Transient storage values.
Trait Implementations§
Source§impl Clone for InMemoryAccount
impl Clone for InMemoryAccount
Source§fn clone(&self) -> InMemoryAccount
fn clone(&self) -> InMemoryAccount
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 InMemoryAccount
impl Debug for InMemoryAccount
Source§impl Default for InMemoryAccount
impl Default for InMemoryAccount
Source§fn default() -> InMemoryAccount
fn default() -> InMemoryAccount
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for InMemoryAccount
impl RefUnwindSafe for InMemoryAccount
impl Send for InMemoryAccount
impl Sync for InMemoryAccount
impl Unpin for InMemoryAccount
impl UnsafeUnpin for InMemoryAccount
impl UnwindSafe for InMemoryAccount
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,
Source§impl<T> TrapConsume<T> for T
impl<T> TrapConsume<T> for T
Source§type Rest = Infallible
type Rest = Infallible
Rest type.
Source§fn consume(self) -> Result<T, Infallible>
fn consume(self) -> Result<T, Infallible>
Consume
T to get Rest.