pub struct ProtocolParamUpdate { /* private fields */ }
Implementations
sourceimpl ProtocolParamUpdate
impl ProtocolParamUpdate
pub fn from_bytes(
bytes: Vec<u8>
) -> Result<ProtocolParamUpdate, DeserializeError>
sourceimpl ProtocolParamUpdate
impl ProtocolParamUpdate
pub fn from_hex(hex_str: &str) -> Result<ProtocolParamUpdate, DeserializeError>
sourceimpl 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>
Since babbage era this param is outdated. But this param you can meet in a pre-babbage block.
!!! 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>
Since babbage era this param is outdated. But this param you can meet in a pre-babbage block.
!!! DEPRECATED !!! Since babbage era this param is outdated. But this param you can meet in a pre-babbage block.
pub fn set_protocol_version(&mut self, protocol_version: &ProtocolVersion)
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 new() -> Self
Trait Implementations
sourceimpl Clone for ProtocolParamUpdate
impl Clone for ProtocolParamUpdate
sourcefn clone(&self) -> ProtocolParamUpdate
fn clone(&self) -> ProtocolParamUpdate
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for ProtocolParamUpdate
impl Debug for ProtocolParamUpdate
sourceimpl<'de> Deserialize<'de> for ProtocolParamUpdate
impl<'de> Deserialize<'de> for ProtocolParamUpdate
sourcefn 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
sourceimpl Deserialize for ProtocolParamUpdate
impl Deserialize for ProtocolParamUpdate
fn deserialize<R: BufRead + Seek>(
raw: &mut Deserializer<R>
) -> Result<Self, DeserializeError>
sourceimpl JsonSchema for ProtocolParamUpdate
impl JsonSchema for ProtocolParamUpdate
sourcefn schema_name() -> String
fn schema_name() -> String
The name of the generated JSON Schema. Read more
sourcefn json_schema(gen: &mut SchemaGenerator) -> Schema
fn json_schema(gen: &mut SchemaGenerator) -> Schema
Generates a JSON Schema for this type. Read more
sourcefn 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 more
sourceimpl Ord for ProtocolParamUpdate
impl Ord for ProtocolParamUpdate
sourcefn cmp(&self, other: &ProtocolParamUpdate) -> Ordering
fn cmp(&self, other: &ProtocolParamUpdate) -> Ordering
1.21.0 · sourcefn max(self, other: Self) -> Self
fn max(self, other: Self) -> Self
Compares and returns the maximum of two values. Read more
1.21.0 · sourcefn min(self, other: Self) -> Self
fn min(self, other: Self) -> Self
Compares and returns the minimum of two values. Read more
1.50.0 · sourcefn clamp(self, min: Self, max: Self) -> Self where
Self: PartialOrd<Self>,
fn clamp(self, min: Self, max: Self) -> Self where
Self: PartialOrd<Self>,
Restrict a value to a certain interval. Read more
sourceimpl PartialEq<ProtocolParamUpdate> for ProtocolParamUpdate
impl PartialEq<ProtocolParamUpdate> for ProtocolParamUpdate
sourcefn eq(&self, other: &ProtocolParamUpdate) -> bool
fn eq(&self, other: &ProtocolParamUpdate) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourcefn ne(&self, other: &ProtocolParamUpdate) -> bool
fn ne(&self, other: &ProtocolParamUpdate) -> bool
This method tests for !=
.
sourceimpl PartialOrd<ProtocolParamUpdate> for ProtocolParamUpdate
impl PartialOrd<ProtocolParamUpdate> for ProtocolParamUpdate
sourcefn partial_cmp(&self, other: &ProtocolParamUpdate) -> Option<Ordering>
fn partial_cmp(&self, other: &ProtocolParamUpdate) -> Option<Ordering>
This method returns an ordering between self
and other
values if one exists. Read more
1.0.0 · sourcefn lt(&self, other: &Rhs) -> bool
fn lt(&self, other: &Rhs) -> bool
This method tests less than (for self
and other
) and is used by the <
operator. Read more
1.0.0 · sourcefn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for self
and other
) and is used by the <=
operator. Read more
sourceimpl Serialize for ProtocolParamUpdate
impl Serialize for ProtocolParamUpdate
fn serialize<'se, W: Write>(
&self,
serializer: &'se mut Serializer<W>
) -> Result<&'se mut Serializer<W>>
sourceimpl Serialize for ProtocolParamUpdate
impl Serialize for ProtocolParamUpdate
impl Eq for ProtocolParamUpdate
impl StructuralEq for ProtocolParamUpdate
impl StructuralPartialEq for ProtocolParamUpdate
Auto Trait Implementations
impl RefUnwindSafe for ProtocolParamUpdate
impl Send for ProtocolParamUpdate
impl Sync for ProtocolParamUpdate
impl Unpin for ProtocolParamUpdate
impl UnwindSafe for ProtocolParamUpdate
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more