Struct cosmos_sdk_proto::cosmos::distribution::v1beta1::ValidatorHistoricalRewards[][src]

pub struct ValidatorHistoricalRewards {
    pub cumulative_reward_ratio: Vec<DecCoin>,
    pub reference_count: u32,
}

ValidatorHistoricalRewards represents historical rewards for a validator. Height is implicit within the store key. Cumulative reward ratio is the sum from the zeroeth period until this period of rewards / tokens, per the spec. The reference count indicates the number of objects which might need to reference this historical entry at any point. ReferenceCount = number of outstanding delegations which ended the associated period (and might need to read that record) + number of slashes which ended the associated period (and might need to read that record) + one per validator for the zeroeth period, set on initialization

Fields

cumulative_reward_ratio: Vec<DecCoin>reference_count: u32

Trait Implementations

impl Clone for ValidatorHistoricalRewards[src]

impl Debug for ValidatorHistoricalRewards[src]

impl Default for ValidatorHistoricalRewards[src]

impl Message for ValidatorHistoricalRewards[src]

impl PartialEq<ValidatorHistoricalRewards> for ValidatorHistoricalRewards[src]

impl StructuralPartialEq for ValidatorHistoricalRewards[src]

Auto Trait Implementations

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> Instrument for T[src]

impl<T> Instrument for T[src]

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

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

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

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<V, T> VZip<V> for T where
    V: MultiLane<T>, 

impl<T> WithSubscriber for T[src]