[][src]Struct sp_phragmen::Support

pub struct Support<AccountId> {
    pub total: ExtendedBalance,
    pub voters: Vec<PhragmenStakedAssignment<AccountId>>,
}

A structure to demonstrate the phragmen result from the perspective of the candidate, i.e. how much support each candidate is receiving.

This complements the PhragmenResult and is needed to run the equalize post-processing.

This, at the current version, resembles the Exposure defined in the Staking pallet, yet they do not necessarily have to be the same.

Fields

total: ExtendedBalance

Total support.

voters: Vec<PhragmenStakedAssignment<AccountId>>

Support from voters.

Trait Implementations

impl<AccountId> Debug for Support<AccountId> where
    AccountId: Debug
[src]

impl<AccountId: Default> Default for Support<AccountId>[src]

impl<'de, AccountId> Deserialize<'de> for Support<AccountId> where
    AccountId: Deserialize<'de>, 
[src]

impl<AccountId: Eq> Eq for Support<AccountId>[src]

impl<AccountId: PartialEq> PartialEq<Support<AccountId>> for Support<AccountId>[src]

impl<AccountId> Serialize for Support<AccountId> where
    AccountId: Serialize
[src]

impl<AccountId> StructuralEq for Support<AccountId>[src]

impl<AccountId> StructuralPartialEq for Support<AccountId>[src]

Auto Trait Implementations

impl<AccountId> RefUnwindSafe for Support<AccountId> where
    AccountId: RefUnwindSafe

impl<AccountId> Send for Support<AccountId> where
    AccountId: Send

impl<AccountId> Sync for Support<AccountId> where
    AccountId: Sync

impl<AccountId> Unpin for Support<AccountId> where
    AccountId: Unpin

impl<AccountId> UnwindSafe for Support<AccountId> where
    AccountId: 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> CheckedConversion for T[src]

impl<T> Clear for T where
    T: PartialEq<T> + Eq + Default
[src]

impl<T> Clear for T where
    T: InitializableFromZeroed + ?Sized

impl<T> DeserializeOwned for T where
    T: Deserialize<'de>, 
[src]

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

impl<T> InitializableFromZeroed for T where
    T: Default

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

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

fn from_ref(outer: &Outer) -> &T

Get a reference to the inner from the outer.

fn from_mut(outer: &mut Outer) -> &mut T

Get a mutable reference to the inner from the outer.

impl<T> MaybeDebug for T where
    T: Debug

impl<T> MaybeDebug for T where
    T: Debug

impl<T> MaybeRefUnwindSafe for T where
    T: RefUnwindSafe

impl<T> MaybeSerialize for T where
    T: Serialize

impl<T> MaybeSerializeDeserialize for T where
    T: DeserializeOwned + Serialize

impl<T> Same<T> for T

type Output = T

Should always be Self

impl<T> SaturatedConversion for T

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>, 

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

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