[][src]Struct sp_phragmen::PhragmenResult

pub struct PhragmenResult<AccountId, T: PerThing> {
    pub winners: Vec<WithApprovalOf<AccountId>>,
    pub assignments: Vec<Assignment<AccountId, T>>,
}

Final result of the phragmen 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, T>>

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: Debug, T: Debug + PerThing> Debug for PhragmenResult<AccountId, T>[src]

Auto Trait Implementations

impl<AccountId, T> RefUnwindSafe for PhragmenResult<AccountId, T> where
    AccountId: RefUnwindSafe,
    T: RefUnwindSafe

impl<AccountId, T> Send for PhragmenResult<AccountId, T> where
    AccountId: Send,
    T: Send

impl<AccountId, T> Sync for PhragmenResult<AccountId, T> where
    AccountId: Sync,
    T: Sync

impl<AccountId, T> Unpin for PhragmenResult<AccountId, T> where
    AccountId: Unpin,
    T: Unpin

impl<AccountId, T> UnwindSafe for PhragmenResult<AccountId, T> where
    AccountId: UnwindSafe,
    T: 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> From<T> for T[src]

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

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<T, S> UniqueSaturatedInto<T> for S where
    S: TryInto<T>,
    T: Bounded
[src]