Struct avalanche_types::genesis::Allocation
source · [−]pub struct Allocation {
pub avax_addr: Option<String>,
pub eth_addr: Option<String>,
pub initial_amount: Option<u64>,
pub unlock_schedule: Option<Vec<LockedAmount>>,
}
Expand description
ref. https://pkg.go.dev/github.com/ava-labs/avalanchego/genesis#Allocation
Fields
avax_addr: Option<String>
eth_addr: Option<String>
“eth_addr” can be any value, not used in “avalanchego”. This field is only used for memos.
initial_amount: Option<u64>
Initially allocated amount for X-chain. On the X-Chain, one AVAX is 10^9 units. On the P-Chain, one AVAX is 10^9 units. On the C-Chain, one AVAX is 10^18 units.
unlock_schedule: Option<Vec<LockedAmount>>
Implementations
sourceimpl Allocation
impl Allocation
Trait Implementations
sourceimpl Clone for Allocation
impl Clone for Allocation
sourcefn clone(&self) -> Allocation
fn clone(&self) -> Allocation
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 Allocation
impl Debug for Allocation
sourceimpl Default for Allocation
impl Default for Allocation
sourceimpl<'de> Deserialize<'de> for Allocation
impl<'de> Deserialize<'de> for Allocation
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<Allocation> for Allocation
impl PartialEq<Allocation> for Allocation
sourcefn eq(&self, other: &Allocation) -> bool
fn eq(&self, other: &Allocation) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourcefn ne(&self, other: &Allocation) -> bool
fn ne(&self, other: &Allocation) -> bool
This method tests for !=
.
sourceimpl Serialize for Allocation
impl Serialize for Allocation
impl Eq for Allocation
impl StructuralEq for Allocation
impl StructuralPartialEq for Allocation
Auto Trait Implementations
impl RefUnwindSafe for Allocation
impl Send for Allocation
impl Sync for Allocation
impl Unpin for Allocation
impl UnwindSafe for Allocation
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.