Struct avalanche_types::genesis::coreth::AllocAccount
source · [−]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/coreth/core#GenesisAlloc ref. https://pkg.go.dev/github.com/ava-labs/coreth/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/coreth/core#GenesisMultiCoinBalance
nonce: Option<u64>
Implementations
sourceimpl AllocAccount
impl AllocAccount
Trait Implementations
sourceimpl Clone for AllocAccount
impl Clone for AllocAccount
sourcefn clone(&self) -> AllocAccount
fn clone(&self) -> AllocAccount
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for AllocAccount
impl Debug for AllocAccount
sourceimpl Default for AllocAccount
impl Default for AllocAccount
sourceimpl<'de> Deserialize<'de> for AllocAccount
impl<'de> Deserialize<'de> for AllocAccount
sourcefn 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
sourceimpl PartialEq<AllocAccount> for AllocAccount
impl PartialEq<AllocAccount> for AllocAccount
sourcefn eq(&self, other: &AllocAccount) -> bool
fn eq(&self, other: &AllocAccount) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourcefn ne(&self, other: &AllocAccount) -> bool
fn ne(&self, other: &AllocAccount) -> bool
This method tests for !=
.
sourceimpl Serialize for AllocAccount
impl Serialize for AllocAccount
impl Eq for AllocAccount
impl StructuralEq for AllocAccount
impl StructuralPartialEq for AllocAccount
Auto Trait Implementations
impl RefUnwindSafe for AllocAccount
impl Send for AllocAccount
impl Sync for AllocAccount
impl Unpin for AllocAccount
impl UnwindSafe for AllocAccount
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<Q, K> Equivalent<K> for Q where
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Q where
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
sourcefn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to key
and return true
if they are equal.