Enum jormungandr_lib::interfaces::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 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 Debug for RewardParams
impl Debug for RewardParams
source§impl<'de> Deserialize<'de> for RewardParams
impl<'de> Deserialize<'de> for RewardParams
source§fn 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
source§impl From<RewardParams> for RewardParams
impl From<RewardParams> for RewardParams
source§impl From<RewardParams> for RewardParams
impl From<RewardParams> for RewardParams
source§fn from(rp: RewardParams) -> Self
fn from(rp: RewardParams) -> Self
Converts to this type from the input type.
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 ==
.source§impl Serialize for RewardParams
impl Serialize for RewardParams
impl Copy for RewardParams
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