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 moresourceimpl 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
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 Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
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 Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere
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.sourceimpl<T> Instrument for T
impl<T> Instrument for T
sourcefn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
sourcefn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
sourceimpl<T> Instrument for T
impl<T> Instrument for T
sourcefn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
sourcefn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
sourceimpl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
sourcefn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T in a tonic::Request