Enum chain_impl_mockchain::config::ConfigParam
source · pub enum ConfigParam {
Show 26 variants
Block0Date(Block0Date),
Discrimination(Discrimination),
ConsensusVersion(ConsensusType),
SlotsPerEpoch(u32),
SlotDuration(u8),
EpochStabilityDepth(u32),
ConsensusGenesisPraosActiveSlotsCoeff(Milli),
BlockContentMaxSize(u32),
AddBftLeader(BftLeaderId),
RemoveBftLeader(BftLeaderId),
LinearFee(LinearFee),
ProposalExpiration(u32),
KesUpdateSpeed(u32),
TreasuryAdd(Value),
TreasuryParams(TaxType),
RewardPot(Value),
RewardParams(RewardParams),
PerCertificateFees(PerCertificateFee),
FeesInTreasury(bool),
RewardLimitNone,
RewardLimitByAbsoluteStake(Ratio),
PoolRewardParticipationCapping((NonZeroU32, NonZeroU32)),
AddCommitteeId(CommitteeId),
RemoveCommitteeId(CommitteeId),
PerVoteCertificateFees(PerVoteCertificateFee),
TransactionMaxExpiryEpochs(u8),
}
Variants§
Block0Date(Block0Date)
Discrimination(Discrimination)
ConsensusVersion(ConsensusType)
SlotsPerEpoch(u32)
SlotDuration(u8)
EpochStabilityDepth(u32)
ConsensusGenesisPraosActiveSlotsCoeff(Milli)
BlockContentMaxSize(u32)
AddBftLeader(BftLeaderId)
RemoveBftLeader(BftLeaderId)
LinearFee(LinearFee)
ProposalExpiration(u32)
KesUpdateSpeed(u32)
TreasuryAdd(Value)
TreasuryParams(TaxType)
RewardPot(Value)
RewardParams(RewardParams)
PerCertificateFees(PerCertificateFee)
FeesInTreasury(bool)
RewardLimitNone
RewardLimitByAbsoluteStake(Ratio)
PoolRewardParticipationCapping((NonZeroU32, NonZeroU32))
AddCommitteeId(CommitteeId)
RemoveCommitteeId(CommitteeId)
PerVoteCertificateFees(PerVoteCertificateFee)
TransactionMaxExpiryEpochs(u8)
Trait Implementations§
source§impl Arbitrary for ConfigParam
impl Arbitrary for ConfigParam
source§impl Clone for ConfigParam
impl Clone for ConfigParam
source§fn clone(&self) -> ConfigParam
fn clone(&self) -> ConfigParam
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 ConfigParam
impl Debug for ConfigParam
source§impl DeserializeFromSlice for ConfigParam
impl DeserializeFromSlice for ConfigParam
fn deserialize_from_slice(codec: &mut Codec<&[u8]>) -> Result<Self, ReadError>
fn deserialize_validate_from_slice( codec: &mut Codec<&[u8]> ) -> Result<(), ReadError>
source§impl<'a> From<&'a ConfigParam> for Tag
impl<'a> From<&'a ConfigParam> for Tag
source§fn from(config_param: &'a ConfigParam) -> Self
fn from(config_param: &'a ConfigParam) -> Self
Converts to this type from the input type.
source§impl PartialEq<ConfigParam> for ConfigParam
impl PartialEq<ConfigParam> for ConfigParam
source§fn eq(&self, other: &ConfigParam) -> bool
fn eq(&self, other: &ConfigParam) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl Serialize for ConfigParam
impl Serialize for ConfigParam
impl Eq for ConfigParam
impl StructuralEq for ConfigParam
impl StructuralPartialEq for ConfigParam
Auto Trait Implementations§
impl RefUnwindSafe for ConfigParam
impl Send for ConfigParam
impl Sync for ConfigParam
impl Unpin for ConfigParam
impl UnwindSafe for ConfigParam
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