pub struct VoteAggregation {
pub value: VoteValue,
pub total_weight: u64,
pub vote_count: usize,
pub authorities: HashSet<AuthorityId>,
}Expand description
Vote aggregation result
Fields§
§value: VoteValue§total_weight: u64§vote_count: usizeTrait Implementations§
Source§impl Clone for VoteAggregation
impl Clone for VoteAggregation
Source§fn clone(&self) -> VoteAggregation
fn clone(&self) -> VoteAggregation
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 moreSource§impl Debug for VoteAggregation
impl Debug for VoteAggregation
Source§impl<'de> Deserialize<'de> for VoteAggregation
impl<'de> Deserialize<'de> for VoteAggregation
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
Auto Trait Implementations§
impl Freeze for VoteAggregation
impl RefUnwindSafe for VoteAggregation
impl Send for VoteAggregation
impl Sync for VoteAggregation
impl Unpin for VoteAggregation
impl UnwindSafe for VoteAggregation
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