pub struct AllocAccount {
pub code: Option<String>,
pub storage: Option<BTreeMap<String, String>>,
pub balance: BigInt,
pub mcbalance: Option<BTreeMap<String, u64>>,
pub nonce: Option<u64>,
}
Expand description
ref. https://pkg.go.dev/github.com/ava-labs/subnet-evm/core#GenesisAlloc ref. https://pkg.go.dev/github.com/ava-labs/subnet-evm/core#GenesisAccount
Fields§
§code: Option<String>
§storage: Option<BTreeMap<String, String>>
§balance: BigInt
§mcbalance: Option<BTreeMap<String, u64>>
ref. https://pkg.go.dev/github.com/ava-labs/subnet-evm/core#GenesisMultiCoinBalance
nonce: Option<u64>
Implementations§
Source§impl AllocAccount
impl AllocAccount
Trait Implementations§
Source§impl Clone for AllocAccount
impl Clone for AllocAccount
Source§fn clone(&self) -> AllocAccount
fn clone(&self) -> AllocAccount
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 AllocAccount
impl Debug for AllocAccount
Source§impl Default for AllocAccount
impl Default for AllocAccount
Source§impl<'de> Deserialize<'de> for AllocAccount
impl<'de> Deserialize<'de> for AllocAccount
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 AllocAccount
impl PartialEq for AllocAccount
Source§impl Serialize for AllocAccount
impl Serialize for AllocAccount
impl Eq for AllocAccount
impl StructuralPartialEq for AllocAccount
Auto Trait Implementations§
impl Freeze for AllocAccount
impl RefUnwindSafe for AllocAccount
impl Send for AllocAccount
impl Sync for AllocAccount
impl Unpin for AllocAccount
impl UnwindSafe for AllocAccount
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