Enum chain_impl_mockchain::config::RewardParams
source · pub enum RewardParams {
Linear {
constant: u64,
ratio: Ratio,
epoch_start: Epoch,
epoch_rate: NonZeroU32,
},
Halving {
constant: u64,
ratio: Ratio,
epoch_start: Epoch,
epoch_rate: NonZeroU32,
},
}
Variants§
Trait Implementations§
source§impl Arbitrary for RewardParams
impl Arbitrary for RewardParams
source§impl Clone for RewardParams
impl Clone for RewardParams
source§fn clone(&self) -> RewardParams
fn clone(&self) -> RewardParams
Returns a copy 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 ConfigParamVariant for RewardParams
impl ConfigParamVariant for RewardParams
source§impl Debug for RewardParams
impl Debug for RewardParams
source§impl PartialEq<RewardParams> for RewardParams
impl PartialEq<RewardParams> for RewardParams
source§fn eq(&self, other: &RewardParams) -> bool
fn eq(&self, other: &RewardParams) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Eq for RewardParams
impl StructuralEq for RewardParams
impl StructuralPartialEq for RewardParams
Auto Trait Implementations§
impl RefUnwindSafe for RewardParams
impl Send for RewardParams
impl Sync for RewardParams
impl Unpin for RewardParams
impl UnwindSafe for RewardParams
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