pub struct CommitteeVotesInner {
pub tx_hash: String,
pub voter_hot_id: String,
pub proposal_id: String,
pub proposal_tx_hash: String,
pub proposal_index: i32,
pub governance_type: GovernanceType,
pub vote: Vote,
pub metadata_url: Option<String>,
pub metadata_hash: Option<String>,
pub block_height: i32,
pub block_time: i32,
}Fields§
§tx_hash: StringHash of the vote transaction.
voter_hot_id: StringCIP-129 bech32 encoded hot credential of the committee member that cast this vote (cc_hot1...).
proposal_id: StringCIP-129 Governance Action Identifier of the proposal being voted on.
proposal_tx_hash: StringHash of the proposal transaction.
proposal_index: i32Index of the proposal within its transaction.
governance_type: GovernanceTypeType of the governance action being voted on.
vote: VoteThe Vote. Can be one of yes, no, abstain.
metadata_url: Option<String>Voting anchor URL — pointer to the off-chain rationale published by the voter.
metadata_hash: Option<String>Hex hash of the off-chain anchor document.
block_height: i32Block height of the vote transaction.
block_time: i32Block creation time in UNIX time of the vote transaction.
Implementations§
Trait Implementations§
Source§impl Clone for CommitteeVotesInner
impl Clone for CommitteeVotesInner
Source§fn clone(&self) -> CommitteeVotesInner
fn clone(&self) -> CommitteeVotesInner
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 CommitteeVotesInner
impl Debug for CommitteeVotesInner
Source§impl Default for CommitteeVotesInner
impl Default for CommitteeVotesInner
Source§fn default() -> CommitteeVotesInner
fn default() -> CommitteeVotesInner
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for CommitteeVotesInner
impl<'de> Deserialize<'de> for CommitteeVotesInner
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 PartialEq for CommitteeVotesInner
impl PartialEq for CommitteeVotesInner
Source§fn eq(&self, other: &CommitteeVotesInner) -> bool
fn eq(&self, other: &CommitteeVotesInner) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for CommitteeVotesInner
impl Serialize for CommitteeVotesInner
impl StructuralPartialEq for CommitteeVotesInner
Auto Trait Implementations§
impl Freeze for CommitteeVotesInner
impl RefUnwindSafe for CommitteeVotesInner
impl Send for CommitteeVotesInner
impl Sync for CommitteeVotesInner
impl Unpin for CommitteeVotesInner
impl UnsafeUnpin for CommitteeVotesInner
impl UnwindSafe for CommitteeVotesInner
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