Struct terra_rust_api::staking_types::Validator[][src]

pub struct Validator {
    pub operator_address: String,
    pub consensus_pubkey: String,
    pub jailed: bool,
    pub status: u16,
    pub tokens: u64,
    pub delegator_shares: f64,
    pub description: ValidatorDescription,
    pub unbonding_height: u64,
    pub unbonding_time: DateTime<Utc>,
    pub commission: ValidatorCommission,
    pub min_self_delegation: u64,
}

Top level Validator response

Fields

operator_address: String

The reference address for the validator

consensus_pubkey: String

used in block generation

jailed: bool

Is this validator in the active validator set

status: u16

represents the process of being jailed.

tokens: u64

Total amount of tokens delegated to the validator

delegator_shares: f64

Total amount the validator has delegated themselves.

description: ValidatorDescription

The validator description structure

unbonding_height: u64

For Jailed / soon to be jailed validators. The height of the chain that it occurred

unbonding_time: DateTime<Utc>

For Jailed / soon to be jailed validators. When that occurred

commission: ValidatorCommission

Commission structure

min_self_delegation: u64

Minimum amount the validator requires to delegate. Going under this removes the validator from the set

Trait Implementations

impl Clone for Validator[src]

impl Debug for Validator[src]

impl<'de> Deserialize<'de> for Validator[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> DeserializeOwned for T where
    T: for<'de> Deserialize<'de>, 
[src]

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> Same<T> for T

type Output = T

Should always be Self

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.