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§
Source§impl Clone for ValidatorStats
impl Clone for ValidatorStats
Source§fn clone(&self) -> ValidatorStats
fn clone(&self) -> ValidatorStats
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for ValidatorStats
impl Debug for ValidatorStats
Source§impl<'de> Deserialize<'de> for ValidatorStats
impl<'de> Deserialize<'de> for ValidatorStats
Source§fn 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
Auto Trait Implementations§
impl Freeze for ValidatorStats
impl RefUnwindSafe for ValidatorStats
impl Send for ValidatorStats
impl Sync for ValidatorStats
impl Unpin for ValidatorStats
impl UnwindSafe for ValidatorStats
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more