pub struct VoteStatistics {
pub total_votes: i32,
pub vote_count_pour: i32,
pub vote_count_contre: i32,
pub vote_count_abstention: i32,
pub total_voting_power_pour: f64,
pub total_voting_power_contre: f64,
pub total_voting_power_abstention: f64,
pub pour_percentage: f64,
pub contre_percentage: f64,
pub abstention_percentage: f64,
pub status: ResolutionStatus,
}Expand description
Vote statistics for a resolution
Fields§
§total_votes: i32§vote_count_pour: i32§vote_count_contre: i32§vote_count_abstention: i32§total_voting_power_pour: f64§total_voting_power_contre: f64§total_voting_power_abstention: f64§pour_percentage: f64§contre_percentage: f64§abstention_percentage: f64§status: ResolutionStatusTrait Implementations§
Source§impl Clone for VoteStatistics
impl Clone for VoteStatistics
Source§fn clone(&self) -> VoteStatistics
fn clone(&self) -> VoteStatistics
Returns a duplicate 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 moreAuto Trait Implementations§
impl Freeze for VoteStatistics
impl RefUnwindSafe for VoteStatistics
impl Send for VoteStatistics
impl Sync for VoteStatistics
impl Unpin for VoteStatistics
impl UnwindSafe for VoteStatistics
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
§impl<T> Chain<T> for T
impl<T> Chain<T> for T
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<T> Fake for T
impl<T> Fake for T
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreCreates a shared type from an unshared type.