pub struct VotingProposal(_);
Implementations§
source§impl VotingProposal
impl VotingProposal
pub fn from_bytes(bytes: Vec<u8>) -> Result<VotingProposal, DeserializeError>
source§impl VotingProposal
impl VotingProposal
pub fn from_hex(hex_str: &str) -> Result<VotingProposal, DeserializeError>
source§impl VotingProposal
impl VotingProposal
pub fn new_parameter_change_proposal( parameter_change_proposal: &ParameterChangeProposal ) -> Self
pub fn new_hard_fork_initiation_proposal( hard_fork_initiation_proposal: &HardForkInitiationProposal ) -> Self
pub fn new_treasury_withdrawals_proposal( treasury_withdrawals_proposal: &TreasuryWithdrawalsProposal ) -> Self
pub fn new_no_confidence_proposal( no_confidence_proposal: &NoConfidenceProposal ) -> Self
pub fn new_new_committee_proposal( new_committee_proposal: &NewCommitteeProposal ) -> Self
pub fn new_new_constitution_proposal( new_constitution_proposal: &NewConstitutionProposal ) -> Self
pub fn new_info_proposal(info_proposal: &InfoProposal) -> Self
pub fn kind(&self) -> VotingProposalKind
pub fn as_parameter_change_proposal(&self) -> Option<ParameterChangeProposal>
pub fn as_hard_fork_initiation_proposal( &self ) -> Option<HardForkInitiationProposal>
pub fn as_treasury_withdrawals_proposal( &self ) -> Option<TreasuryWithdrawalsProposal>
pub fn as_no_confidence_proposal(&self) -> Option<NoConfidenceProposal>
pub fn as_new_committee_proposal(&self) -> Option<NewCommitteeProposal>
pub fn as_new_constitution_proposal(&self) -> Option<NewConstitutionProposal>
pub fn as_info_proposal(&self) -> Option<InfoProposal>
Trait Implementations§
source§impl Clone for VotingProposal
impl Clone for VotingProposal
source§fn clone(&self) -> VotingProposal
fn clone(&self) -> VotingProposal
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 VotingProposal
impl Debug for VotingProposal
source§impl<'de> Deserialize<'de> for VotingProposal
impl<'de> Deserialize<'de> for VotingProposal
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 VotingProposal
impl Hash for VotingProposal
source§impl JsonSchema for VotingProposal
impl JsonSchema for VotingProposal
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 VotingProposal
impl Ord for VotingProposal
source§fn cmp(&self, other: &VotingProposal) -> Ordering
fn cmp(&self, other: &VotingProposal) -> 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<VotingProposal> for VotingProposal
impl PartialEq<VotingProposal> for VotingProposal
source§fn eq(&self, other: &VotingProposal) -> bool
fn eq(&self, other: &VotingProposal) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd<VotingProposal> for VotingProposal
impl PartialOrd<VotingProposal> for VotingProposal
source§fn partial_cmp(&self, other: &VotingProposal) -> Option<Ordering>
fn partial_cmp(&self, other: &VotingProposal) -> 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 VotingProposal
impl Serialize for VotingProposal
source§impl Serialize for VotingProposal
impl Serialize for VotingProposal
fn serialize<'se, W: Write>( &self, serializer: &'se mut Serializer<W> ) -> Result<&'se mut Serializer<W>>
impl Eq for VotingProposal
impl StructuralEq for VotingProposal
impl StructuralPartialEq for VotingProposal
Auto Trait Implementations§
impl RefUnwindSafe for VotingProposal
impl Send for VotingProposal
impl Sync for VotingProposal
impl Unpin for VotingProposal
impl UnwindSafe for VotingProposal
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