Struct helium_api::models::Validator[][src]

pub struct Validator {
    pub address: String,
    pub owner: String,
    pub stake: Hnt,
    pub last_heartbeat: u64,
    pub version_heartbeat: u64,
    pub stake_status: String,
    pub penalty: f64,
    pub penalties: Vec<Penalty>,
    pub block_added: u64,
    pub block: u64,
}
Expand description

Represents a validator on the blockchain.

Fields

address: String

The validator address is the base58 check-encoded public key of the validator.

owner: String

The validator pwner is the base58 check-encoded public key of the owner of the validator.

stake: Hnt

The staked amount for the validator

last_heartbeat: u64

The last heartbeat transaction of the validator

version_heartbeat: u64

The last heartbeat version of the validator heartbeat

stake_status: String

The current status of the validator (staked, cooldown, unstaked)

penalty: f64

The total penalty of the validator

penalties: Vec<Penalty>

A list of penalties this validator has received

block_added: u64

The block this validator was added to chain

block: u64

The current block this validator is synced to

Trait Implementations

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Formats the value using the given formatter. Read more

Deserialize this value from the given Serde deserializer. Read more

Serialize this value into the given Serde serializer. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more

Instruments this type with the current Span, returning an Instrumented wrapper. Read more

Performs the conversion.

The resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

🔬 This is a nightly-only experimental API. (toowned_clone_into)

recently added

Uses borrowed data to replace owned data, usually by cloning. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.