Struct tp_npos_elections::ElectionResult[][src]

pub struct ElectionResult<AccountId, P: PerThing> {
    pub winners: Vec<WithApprovalOf<AccountId>>,
    pub assignments: Vec<Assignment<AccountId, P>>,
}

Final result of the election.

Fields

winners: Vec<WithApprovalOf<AccountId>>

Just winners zipped with their approval stake. Note that the approval stake is merely the sub of their received stake and could be used for very basic sorting and approval voting.

assignments: Vec<Assignment<AccountId, P>>

Individual assignments. for each tuple, the first elements is a voter and the second is the list of candidates that it supports.

Trait Implementations

impl<AccountId, P: PerThing> Debug for ElectionResult<AccountId, P> where
    AccountId: Debug,
    P: Debug
[src]

Auto Trait Implementations

impl<AccountId, P> RefUnwindSafe for ElectionResult<AccountId, P> where
    AccountId: RefUnwindSafe,
    P: RefUnwindSafe

impl<AccountId, P> Send for ElectionResult<AccountId, P> where
    AccountId: Send,
    P: Send

impl<AccountId, P> Sync for ElectionResult<AccountId, P> where
    AccountId: Sync,
    P: Sync

impl<AccountId, P> Unpin for ElectionResult<AccountId, P> where
    AccountId: Unpin,
    P: Unpin

impl<AccountId, P> UnwindSafe for ElectionResult<AccountId, P> where
    AccountId: UnwindSafe,
    P: UnwindSafe

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Downcast for T where
    T: Any

impl<T> DowncastSync for T where
    T: Any + Send + Sync

impl<T> From<T> for T[src]

impl<T> Instrument for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, Outer> IsWrappedBy<Outer> for T where
    T: From<Outer>,
    Outer: AsRef<T> + AsMut<T> + From<T>, 
[src]

pub fn from_ref(outer: &Outer) -> &T[src]

Get a reference to the inner from the outer.

pub fn from_mut(outer: &mut Outer) -> &mut T[src]

Get a mutable reference to the inner from the outer.

impl<T> MaybeDebug for T where
    T: Debug

impl<T> MaybeRefUnwindSafe for T where
    T: RefUnwindSafe

impl<T> Same<T> for T

type Output = T

Should always be Self

impl<T> SaturatedConversion for T[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<S, T> UncheckedInto<T> for S where
    T: UncheckedFrom<S>, 
[src]

impl<T, S> UniqueSaturatedInto<T> for S where
    T: Bounded,
    S: TryInto<T>, 
[src]

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,