pub struct PParams {Show 31 fields
pub coins_per_utxo_byte: u64,
pub max_tx_size: u64,
pub min_fee_coefficient: u64,
pub min_fee_constant: u64,
pub max_block_body_size: u64,
pub max_block_header_size: u64,
pub stake_key_deposit: u64,
pub pool_deposit: u64,
pub pool_retirement_epoch_bound: u64,
pub desired_number_of_pools: u64,
pub pool_influence: Option<RationalNumber>,
pub monetary_expansion: Option<RationalNumber>,
pub treasury_expansion: Option<RationalNumber>,
pub min_pool_cost: u64,
pub protocol_version: Option<ProtocolVersion>,
pub max_value_size: u64,
pub collateral_percentage: u64,
pub max_collateral_inputs: u64,
pub cost_models: Option<CostModels>,
pub prices: Option<ExPrices>,
pub max_execution_units_per_transaction: Option<ExUnits>,
pub max_execution_units_per_block: Option<ExUnits>,
pub min_fee_script_ref_cost_per_byte: Option<RationalNumber>,
pub pool_voting_thresholds: Option<VotingThresholds>,
pub drep_voting_thresholds: Option<VotingThresholds>,
pub min_committee_size: u32,
pub committee_term_limit: u64,
pub governance_action_validity_period: u64,
pub governance_action_deposit: u64,
pub drep_deposit: u64,
pub drep_inactivity_period: u64,
}Fields§
§coins_per_utxo_byte: u64The number of coins per UTXO byte.
max_tx_size: u64The maximum transaction size.
min_fee_coefficient: u64The minimum fee coefficient.
min_fee_constant: u64The minimum fee constant.
max_block_body_size: u64The maximum block body size.
max_block_header_size: u64The maximum block header size.
stake_key_deposit: u64The stake key deposit.
pool_deposit: u64The pool deposit.
pool_retirement_epoch_bound: u64The pool retirement epoch bound.
desired_number_of_pools: u64The desired number of pools.
pool_influence: Option<RationalNumber>The pool influence.
monetary_expansion: Option<RationalNumber>The monetary expansion.
treasury_expansion: Option<RationalNumber>The treasury expansion.
min_pool_cost: u64The minimum pool cost.
protocol_version: Option<ProtocolVersion>The protocol version.
max_value_size: u64The maximum value size.
collateral_percentage: u64The collateral percentage.
max_collateral_inputs: u64The maximum collateral inputs.
cost_models: Option<CostModels>The cost models.
prices: Option<ExPrices>The prices.
max_execution_units_per_transaction: Option<ExUnits>The maximum execution units per transaction.
max_execution_units_per_block: Option<ExUnits>The maximum execution units per block.
min_fee_script_ref_cost_per_byte: Option<RationalNumber>The minimum fee per script reference byte.
pool_voting_thresholds: Option<VotingThresholds>The pool voting thresholds.
drep_voting_thresholds: Option<VotingThresholds>The drep voting thresholds.
min_committee_size: u32The minimum committee size.
committee_term_limit: u64The committee term limit.
governance_action_validity_period: u64The governance action validity period.
governance_action_deposit: u64The governance action deposit.
drep_deposit: u64The drep deposit.
drep_inactivity_period: u64The drep inactivity period.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for PParams
impl<'de> Deserialize<'de> for PParams
Source§fn deserialize<D>(
deserializer: D,
) -> Result<PParams, <D as Deserializer<'de>>::Error>where
D: Deserializer<'de>,
fn deserialize<D>(
deserializer: D,
) -> Result<PParams, <D as Deserializer<'de>>::Error>where
D: Deserializer<'de>,
Source§impl Message for PParams
impl Message for PParams
Source§fn encoded_len(&self) -> usize
fn encoded_len(&self) -> usize
Source§fn encode(&self, buf: &mut impl BufMut) -> Result<(), EncodeError>where
Self: Sized,
fn encode(&self, buf: &mut impl BufMut) -> Result<(), EncodeError>where
Self: Sized,
Source§fn encode_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
fn encode_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
Source§fn encode_length_delimited(
&self,
buf: &mut impl BufMut,
) -> Result<(), EncodeError>where
Self: Sized,
fn encode_length_delimited(
&self,
buf: &mut impl BufMut,
) -> Result<(), EncodeError>where
Self: Sized,
Source§fn encode_length_delimited_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
fn encode_length_delimited_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
Source§fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
Source§fn decode_length_delimited(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode_length_delimited(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
Source§fn merge(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
fn merge(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
self. Read moreSource§fn merge_length_delimited(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
fn merge_length_delimited(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
self.Source§impl Serialize for PParams
impl Serialize for PParams
Source§fn serialize<S>(
&self,
serializer: S,
) -> Result<<S as Serializer>::Ok, <S as Serializer>::Error>where
S: Serializer,
fn serialize<S>(
&self,
serializer: S,
) -> Result<<S as Serializer>::Ok, <S as Serializer>::Error>where
S: Serializer,
impl StructuralPartialEq for PParams
Auto Trait Implementations§
impl Freeze for PParams
impl RefUnwindSafe for PParams
impl Send for PParams
impl Sync for PParams
impl Unpin for PParams
impl UnsafeUnpin for PParams
impl UnwindSafe for PParams
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
impl<T> ErasedDestructor for Twhere
T: 'static,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more