Struct concordium_base::updates::TimeParameters
source · pub struct TimeParameters {
pub reward_period_length: RewardPeriodLength,
pub mint_per_payday: MintRate,
}
Expand description
The time parameters are introduced as of protocol version 4, and consist of the reward period length and the mint rate per payday. These are coupled as a change to either affects the overall rate of minting.
Fields§
§reward_period_length: RewardPeriodLength
§mint_per_payday: MintRate
Trait Implementations§
source§impl Clone for TimeParameters
impl Clone for TimeParameters
source§fn clone(&self) -> TimeParameters
fn clone(&self) -> TimeParameters
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 TimeParameters
impl Debug for TimeParameters
source§impl Deserial for TimeParameters
impl Deserial for TimeParameters
fn deserial<GenericReaderType: ReadBytesExt>( source: &mut GenericReaderType ) -> ParseResult<Self>
source§impl<'de> Deserialize<'de> for TimeParameters
impl<'de> Deserialize<'de> for TimeParameters
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 Serial for TimeParameters
impl Serial for TimeParameters
fn serial<GenericBufferType: Buffer>(&self, out: &mut GenericBufferType)
source§impl Serialize for TimeParameters
impl Serialize for TimeParameters
impl Copy for TimeParameters
Auto Trait Implementations§
impl RefUnwindSafe for TimeParameters
impl Send for TimeParameters
impl Sync for TimeParameters
impl Unpin for TimeParameters
impl UnwindSafe for TimeParameters
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