pub struct CurrentEpochValidatorInfo {Show 16 fields
pub account_id: AccountId,
pub public_key: PublicKey,
pub is_slashed: bool,
pub stake: NearToken,
pub shards_produced: Vec<u64>,
pub num_produced_blocks: u64,
pub num_expected_blocks: u64,
pub num_produced_chunks: u64,
pub num_expected_chunks: u64,
pub num_produced_chunks_per_shard: Vec<u64>,
pub num_expected_chunks_per_shard: Vec<u64>,
pub num_produced_endorsements: u64,
pub num_expected_endorsements: u64,
pub num_produced_endorsements_per_shard: Vec<u64>,
pub num_expected_endorsements_per_shard: Vec<u64>,
pub shards_endorsed: Vec<u64>,
}Expand description
Current epoch validator information.
Fields§
§account_id: AccountIdValidator account ID.
public_key: PublicKeyValidator public key.
is_slashed: boolWhether this validator has been slashed.
stake: NearTokenStake amount.
shards_produced: Vec<u64>Shards produced by this validator.
num_produced_blocks: u64Number of blocks produced.
num_expected_blocks: u64Number of blocks expected.
num_produced_chunks: u64Number of chunks produced.
num_expected_chunks: u64Number of chunks expected.
num_produced_chunks_per_shard: Vec<u64>Number of produced chunks per shard.
num_expected_chunks_per_shard: Vec<u64>Number of expected chunks per shard.
num_produced_endorsements: u64Number of endorsements produced.
num_expected_endorsements: u64Number of endorsements expected.
num_produced_endorsements_per_shard: Vec<u64>Number of endorsements produced per shard.
num_expected_endorsements_per_shard: Vec<u64>Number of endorsements expected per shard.
shards_endorsed: Vec<u64>Shards endorsed.
Trait Implementations§
Source§impl Clone for CurrentEpochValidatorInfo
impl Clone for CurrentEpochValidatorInfo
Source§fn clone(&self) -> CurrentEpochValidatorInfo
fn clone(&self) -> CurrentEpochValidatorInfo
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 CurrentEpochValidatorInfo
impl Debug for CurrentEpochValidatorInfo
Source§impl<'de> Deserialize<'de> for CurrentEpochValidatorInfo
impl<'de> Deserialize<'de> for CurrentEpochValidatorInfo
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 CurrentEpochValidatorInfo
impl RefUnwindSafe for CurrentEpochValidatorInfo
impl Send for CurrentEpochValidatorInfo
impl Sync for CurrentEpochValidatorInfo
impl Unpin for CurrentEpochValidatorInfo
impl UnsafeUnpin for CurrentEpochValidatorInfo
impl UnwindSafe for CurrentEpochValidatorInfo
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