Struct ethers_core::utils::GenesisAccount
source · pub struct GenesisAccount {
pub nonce: Option<u64>,
pub balance: U256,
pub code: Option<Bytes>,
pub storage: Option<HashMap<H256, H256>>,
}
Expand description
An account in the state of the genesis block.
Fields§
§nonce: Option<u64>
§balance: U256
§code: Option<Bytes>
§storage: Option<HashMap<H256, H256>>
Trait Implementations§
source§impl Clone for GenesisAccount
impl Clone for GenesisAccount
source§fn clone(&self) -> GenesisAccount
fn clone(&self) -> GenesisAccount
Returns a copy 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 GenesisAccount
impl Debug for GenesisAccount
source§impl Default for GenesisAccount
impl Default for GenesisAccount
source§fn default() -> GenesisAccount
fn default() -> GenesisAccount
Returns the “default value” for a type. Read more
source§impl<'de> Deserialize<'de> for GenesisAccount
impl<'de> Deserialize<'de> for GenesisAccount
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 GenesisAccount
impl PartialEq for GenesisAccount
source§fn eq(&self, other: &GenesisAccount) -> bool
fn eq(&self, other: &GenesisAccount) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl Serialize for GenesisAccount
impl Serialize for GenesisAccount
impl Eq for GenesisAccount
impl StructuralPartialEq for GenesisAccount
Auto Trait Implementations§
impl RefUnwindSafe for GenesisAccount
impl Send for GenesisAccount
impl Sync for GenesisAccount
impl Unpin for GenesisAccount
impl UnwindSafe for GenesisAccount
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