pub struct ProtocolParamUpdate { /* private fields */ }
Implementations§
Source§impl ProtocolParamUpdate
impl ProtocolParamUpdate
pub fn from_bytes( bytes: Vec<u8>, ) -> Result<ProtocolParamUpdate, DeserializeError>
Source§impl ProtocolParamUpdate
impl ProtocolParamUpdate
pub fn from_hex(hex_str: &str) -> Result<ProtocolParamUpdate, DeserializeError>
Source§impl ProtocolParamUpdate
impl ProtocolParamUpdate
pub fn set_minfee_a(&mut self, minfee_a: &Coin)
pub fn minfee_a(&self) -> Option<Coin>
pub fn set_minfee_b(&mut self, minfee_b: &Coin)
pub fn minfee_b(&self) -> Option<Coin>
pub fn set_max_block_body_size(&mut self, max_block_body_size: u32)
pub fn max_block_body_size(&self) -> Option<u32>
pub fn set_max_tx_size(&mut self, max_tx_size: u32)
pub fn max_tx_size(&self) -> Option<u32>
pub fn set_max_block_header_size(&mut self, max_block_header_size: u32)
pub fn max_block_header_size(&self) -> Option<u32>
pub fn set_key_deposit(&mut self, key_deposit: &Coin)
pub fn key_deposit(&self) -> Option<Coin>
pub fn set_pool_deposit(&mut self, pool_deposit: &Coin)
pub fn pool_deposit(&self) -> Option<Coin>
pub fn set_max_epoch(&mut self, max_epoch: u32)
pub fn max_epoch(&self) -> Option<u32>
pub fn set_n_opt(&mut self, n_opt: u32)
pub fn n_opt(&self) -> Option<u32>
pub fn set_pool_pledge_influence( &mut self, pool_pledge_influence: &UnitInterval, )
pub fn pool_pledge_influence(&self) -> Option<UnitInterval>
pub fn set_expansion_rate(&mut self, expansion_rate: &UnitInterval)
pub fn expansion_rate(&self) -> Option<UnitInterval>
pub fn set_treasury_growth_rate(&mut self, treasury_growth_rate: &UnitInterval)
pub fn treasury_growth_rate(&self) -> Option<UnitInterval>
Sourcepub fn d(&self) -> Option<UnitInterval>
👎Deprecated since 11.0.0: Since babbage era this param is outdated. But this param you can meet in a pre-babbage block.
pub fn d(&self) -> Option<UnitInterval>
!!! DEPRECATED !!! Since babbage era this param is outdated. But this param you can meet in a pre-babbage block.
Sourcepub fn extra_entropy(&self) -> Option<Nonce>
👎Deprecated since 11.0.0: Since babbage era this param is outdated. But this param you can meet in a pre-babbage block.
pub fn extra_entropy(&self) -> Option<Nonce>
!!! DEPRECATED !!! Since babbage era this param is outdated. But this param you can meet in a pre-babbage block.
Sourcepub fn set_protocol_version(&mut self, protocol_version: &ProtocolVersion)
👎Deprecated since 12.0.0: Since conway era this param is outdated. But this param you can meet in a pre-conway block.
pub fn set_protocol_version(&mut self, protocol_version: &ProtocolVersion)
!!! DEPRECATED !!! Since conway era this param is outdated. But this param you can meet in a pre-conway block.
pub fn protocol_version(&self) -> Option<ProtocolVersion>
pub fn set_min_pool_cost(&mut self, min_pool_cost: &Coin)
pub fn min_pool_cost(&self) -> Option<Coin>
pub fn set_ada_per_utxo_byte(&mut self, ada_per_utxo_byte: &Coin)
pub fn ada_per_utxo_byte(&self) -> Option<Coin>
pub fn set_cost_models(&mut self, cost_models: &Costmdls)
pub fn cost_models(&self) -> Option<Costmdls>
pub fn set_execution_costs(&mut self, execution_costs: &ExUnitPrices)
pub fn execution_costs(&self) -> Option<ExUnitPrices>
pub fn set_max_tx_ex_units(&mut self, max_tx_ex_units: &ExUnits)
pub fn max_tx_ex_units(&self) -> Option<ExUnits>
pub fn set_max_block_ex_units(&mut self, max_block_ex_units: &ExUnits)
pub fn max_block_ex_units(&self) -> Option<ExUnits>
pub fn set_max_value_size(&mut self, max_value_size: u32)
pub fn max_value_size(&self) -> Option<u32>
pub fn set_collateral_percentage(&mut self, collateral_percentage: u32)
pub fn collateral_percentage(&self) -> Option<u32>
pub fn set_max_collateral_inputs(&mut self, max_collateral_inputs: u32)
pub fn max_collateral_inputs(&self) -> Option<u32>
pub fn set_pool_voting_thresholds( &mut self, pool_voting_thresholds: &PoolVotingThresholds, )
pub fn pool_voting_thresholds(&self) -> Option<PoolVotingThresholds>
pub fn set_drep_voting_thresholds( &mut self, drep_voting_thresholds: &DRepVotingThresholds, )
pub fn drep_voting_thresholds(&self) -> Option<DRepVotingThresholds>
pub fn set_min_committee_size(&mut self, min_committee_size: u32)
pub fn min_committee_size(&self) -> Option<u32>
pub fn set_committee_term_limit(&mut self, committee_term_limit: u32)
pub fn committee_term_limit(&self) -> Option<u32>
pub fn set_governance_action_validity_period( &mut self, governance_action_validity_period: u32, )
pub fn governance_action_validity_period(&self) -> Option<u32>
pub fn set_governance_action_deposit( &mut self, governance_action_deposit: &Coin, )
pub fn governance_action_deposit(&self) -> Option<Coin>
pub fn set_drep_deposit(&mut self, drep_deposit: &Coin)
pub fn drep_deposit(&self) -> Option<Coin>
pub fn set_drep_inactivity_period(&mut self, drep_inactivity_period: u32)
pub fn drep_inactivity_period(&self) -> Option<u32>
pub fn set_ref_script_coins_per_byte( &mut self, ref_script_coins_per_byte: &UnitInterval, )
pub fn ref_script_coins_per_byte(&self) -> Option<UnitInterval>
pub fn new() -> Self
Trait Implementations§
Source§impl Clone for ProtocolParamUpdate
impl Clone for ProtocolParamUpdate
Source§fn clone(&self) -> ProtocolParamUpdate
fn clone(&self) -> ProtocolParamUpdate
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 ProtocolParamUpdate
impl Debug for ProtocolParamUpdate
Source§impl<'de> Deserialize<'de> for ProtocolParamUpdate
impl<'de> Deserialize<'de> for ProtocolParamUpdate
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 Hash for ProtocolParamUpdate
impl Hash for ProtocolParamUpdate
Source§impl JsonSchema for ProtocolParamUpdate
impl JsonSchema for ProtocolParamUpdate
Source§fn schema_name() -> String
fn schema_name() -> String
The name of the generated JSON Schema. Read more
Source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Returns a string that uniquely identifies the schema produced by this type. Read more
Source§fn json_schema(generator: &mut SchemaGenerator) -> Schema
fn json_schema(generator: &mut SchemaGenerator) -> Schema
Generates a JSON Schema for this type. Read more
Source§fn is_referenceable() -> bool
fn is_referenceable() -> bool
Whether JSON Schemas generated for this type should be re-used where possible using the
$ref
keyword. Read moreSource§impl Ord for ProtocolParamUpdate
impl Ord for ProtocolParamUpdate
Source§fn cmp(&self, other: &ProtocolParamUpdate) -> Ordering
fn cmp(&self, other: &ProtocolParamUpdate) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for ProtocolParamUpdate
impl PartialEq for ProtocolParamUpdate
Source§impl PartialOrd for ProtocolParamUpdate
impl PartialOrd for ProtocolParamUpdate
Source§impl Serialize for ProtocolParamUpdate
impl Serialize for ProtocolParamUpdate
Source§impl Serialize for ProtocolParamUpdate
impl Serialize for ProtocolParamUpdate
fn serialize<'se, W: Write>( &self, serializer: &'se mut Serializer<W>, ) -> Result<&'se mut Serializer<W>>
impl Eq for ProtocolParamUpdate
impl StructuralPartialEq for ProtocolParamUpdate
Auto Trait Implementations§
impl Freeze for ProtocolParamUpdate
impl RefUnwindSafe for ProtocolParamUpdate
impl Send for ProtocolParamUpdate
impl Sync for ProtocolParamUpdate
impl Unpin for ProtocolParamUpdate
impl UnwindSafe for ProtocolParamUpdate
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
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>
Converts
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>
Converts
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