pub struct ParameterChangeProposal { /* private fields */ }
Implementations§
source§impl ParameterChangeProposal
impl ParameterChangeProposal
pub fn from_bytes( bytes: Vec<u8> ) -> Result<ParameterChangeProposal, DeserializeError>
source§impl ParameterChangeProposal
impl ParameterChangeProposal
pub fn from_hex( hex_str: &str ) -> Result<ParameterChangeProposal, DeserializeError>
source§impl ParameterChangeProposal
impl ParameterChangeProposal
pub fn gov_action_id(&self) -> Option<GovernanceActionId>
pub fn protocol_param_updates(&self) -> ProtocolParamUpdate
pub fn new(protocol_param_updates: &ProtocolParamUpdate) -> Self
pub fn new_with_action_id( gov_action_id: &GovernanceActionId, protocol_param_updates: &ProtocolParamUpdate ) -> Self
Trait Implementations§
source§impl Clone for ParameterChangeProposal
impl Clone for ParameterChangeProposal
source§fn clone(&self) -> ParameterChangeProposal
fn clone(&self) -> ParameterChangeProposal
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 ParameterChangeProposal
impl Debug for ParameterChangeProposal
source§impl<'de> Deserialize<'de> for ParameterChangeProposal
impl<'de> Deserialize<'de> for ParameterChangeProposal
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 ParameterChangeProposal
impl Hash for ParameterChangeProposal
source§impl JsonSchema for ParameterChangeProposal
impl JsonSchema for ParameterChangeProposal
source§fn schema_name() -> String
fn schema_name() -> String
The name of the generated JSON Schema. Read more
source§fn json_schema(gen: &mut SchemaGenerator) -> Schema
fn json_schema(gen: &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 ParameterChangeProposal
impl Ord for ParameterChangeProposal
source§fn cmp(&self, other: &ParameterChangeProposal) -> Ordering
fn cmp(&self, other: &ParameterChangeProposal) -> 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<ParameterChangeProposal> for ParameterChangeProposal
impl PartialEq<ParameterChangeProposal> for ParameterChangeProposal
source§fn eq(&self, other: &ParameterChangeProposal) -> bool
fn eq(&self, other: &ParameterChangeProposal) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd<ParameterChangeProposal> for ParameterChangeProposal
impl PartialOrd<ParameterChangeProposal> for ParameterChangeProposal
source§fn partial_cmp(&self, other: &ParameterChangeProposal) -> Option<Ordering>
fn partial_cmp(&self, other: &ParameterChangeProposal) -> Option<Ordering>
1.0.0 · source§fn 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 moresource§impl Serialize for ParameterChangeProposal
impl Serialize for ParameterChangeProposal
source§impl Serialize for ParameterChangeProposal
impl Serialize for ParameterChangeProposal
fn serialize<'se, W: Write>( &self, serializer: &'se mut Serializer<W> ) -> Result<&'se mut Serializer<W>>
impl Eq for ParameterChangeProposal
impl StructuralEq for ParameterChangeProposal
impl StructuralPartialEq for ParameterChangeProposal
Auto Trait Implementations§
impl RefUnwindSafe for ParameterChangeProposal
impl Send for ParameterChangeProposal
impl Sync for ParameterChangeProposal
impl Unpin for ParameterChangeProposal
impl UnwindSafe for ParameterChangeProposal
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