Struct avalanche_types::genesis::LockedAmount
source · [−]Expand description
ref. https://pkg.go.dev/github.com/ava-labs/avalanchego/genesis#LockedAmount
Fields
amount: Option<u64>
P-chain amount to lock for the duration of “locktime” in addition to the initial amount. 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.
locktime: Option<u64>
Unix timestamp to unlock the “amount”.
Implementations
sourceimpl LockedAmount
impl LockedAmount
Trait Implementations
sourceimpl Clone for LockedAmount
impl Clone for LockedAmount
sourcefn clone(&self) -> LockedAmount
fn clone(&self) -> LockedAmount
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 LockedAmount
impl Debug for LockedAmount
sourceimpl Default for LockedAmount
impl Default for LockedAmount
sourceimpl<'de> Deserialize<'de> for LockedAmount
impl<'de> Deserialize<'de> for LockedAmount
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<LockedAmount> for LockedAmount
impl PartialEq<LockedAmount> for LockedAmount
sourcefn eq(&self, other: &LockedAmount) -> bool
fn eq(&self, other: &LockedAmount) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourcefn ne(&self, other: &LockedAmount) -> bool
fn ne(&self, other: &LockedAmount) -> bool
This method tests for !=
.
sourceimpl Serialize for LockedAmount
impl Serialize for LockedAmount
impl Eq for LockedAmount
impl StructuralEq for LockedAmount
impl StructuralPartialEq for LockedAmount
Auto Trait Implementations
impl RefUnwindSafe for LockedAmount
impl Send for LockedAmount
impl Sync for LockedAmount
impl Unpin for LockedAmount
impl UnwindSafe for LockedAmount
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.