Struct helium_api::models::ValidatorStats
source · [−]pub struct ValidatorStats {
pub active: Option<u64>,
pub staked: StakeStats,
pub unstaked: StakeStats,
pub cooldown: StakeStats,
}
Expand description
Stats for validators
Fields
active: Option<u64>
The number of active validators. An active validator is one that emits
heartbeat transactions on a regular basis. None
indicates the active
number is unknown at this time.
staked: StakeStats
unstaked: StakeStats
cooldown: StakeStats
Trait Implementations
sourceimpl Clone for ValidatorStats
impl Clone for ValidatorStats
sourcefn clone(&self) -> ValidatorStats
fn clone(&self) -> ValidatorStats
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for ValidatorStats
impl Debug for ValidatorStats
sourceimpl<'de> Deserialize<'de> for ValidatorStats
impl<'de> Deserialize<'de> for ValidatorStats
sourcefn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
sourceimpl Serialize for ValidatorStats
impl Serialize for ValidatorStats
Auto Trait Implementations
impl RefUnwindSafe for ValidatorStats
impl Send for ValidatorStats
impl Sync for ValidatorStats
impl Unpin for ValidatorStats
impl UnwindSafe for ValidatorStats
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> Instrument for T
impl<T> Instrument for T
sourcefn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Instruments this type with the provided Span
, returning an
Instrumented
wrapper. Read more