Struct jormungandr_lib::interfaces::vote::VoteProposalStatus
source · pub struct VoteProposalStatus {
pub index: u8,
pub proposal_id: Hash,
pub options: Range<u8>,
pub tally: Tally,
pub votes_cast: usize,
}
Fields§
§index: u8
§proposal_id: Hash
§options: Range<u8>
§tally: Tally
§votes_cast: usize
Trait Implementations§
source§impl Clone for VoteProposalStatus
impl Clone for VoteProposalStatus
source§fn clone(&self) -> VoteProposalStatus
fn clone(&self) -> VoteProposalStatus
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 VoteProposalStatus
impl Debug for VoteProposalStatus
source§impl<'de> Deserialize<'de> for VoteProposalStatus
impl<'de> Deserialize<'de> for VoteProposalStatus
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 From<VoteProposalStatus> for VoteProposalStatus
impl From<VoteProposalStatus> for VoteProposalStatus
source§fn from(vote_proposal_status: VoteProposalStatus) -> VoteProposalStatus
fn from(vote_proposal_status: VoteProposalStatus) -> VoteProposalStatus
Converts to this type from the input type.
source§impl From<VoteProposalStatus> for VoteProposalStatus
impl From<VoteProposalStatus> for VoteProposalStatus
source§impl PartialEq<VoteProposalStatus> for VoteProposalStatus
impl PartialEq<VoteProposalStatus> for VoteProposalStatus
source§fn eq(&self, other: &VoteProposalStatus) -> bool
fn eq(&self, other: &VoteProposalStatus) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl Serialize for VoteProposalStatus
impl Serialize for VoteProposalStatus
impl Eq for VoteProposalStatus
impl StructuralEq for VoteProposalStatus
impl StructuralPartialEq for VoteProposalStatus
Auto Trait Implementations§
impl RefUnwindSafe for VoteProposalStatus
impl Send for VoteProposalStatus
impl Sync for VoteProposalStatus
impl Unpin for VoteProposalStatus
impl UnwindSafe for VoteProposalStatus
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