pub struct ValidatorSetEntry {
pub pubkey: [u8; 32],
pub voting_power: Balance,
pub commission_bps: u16,
}Expand description
A validator in the active set with voting power
Fields§
§pubkey: [u8; 32]Validator’s public key
voting_power: BalanceTotal voting power (stake + delegations)
commission_bps: u16Commission rate in basis points
Implementations§
Trait Implementations§
Source§impl Clone for ValidatorSetEntry
impl Clone for ValidatorSetEntry
Source§fn clone(&self) -> ValidatorSetEntry
fn clone(&self) -> ValidatorSetEntry
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 ValidatorSetEntry
impl Debug for ValidatorSetEntry
Source§impl<'de> Deserialize<'de> for ValidatorSetEntry
impl<'de> Deserialize<'de> for ValidatorSetEntry
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
Source§impl PartialEq for ValidatorSetEntry
impl PartialEq for ValidatorSetEntry
Source§fn eq(&self, other: &ValidatorSetEntry) -> bool
fn eq(&self, other: &ValidatorSetEntry) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for ValidatorSetEntry
impl Serialize for ValidatorSetEntry
impl Eq for ValidatorSetEntry
impl StructuralPartialEq for ValidatorSetEntry
Auto Trait Implementations§
impl Freeze for ValidatorSetEntry
impl RefUnwindSafe for ValidatorSetEntry
impl Send for ValidatorSetEntry
impl Sync for ValidatorSetEntry
impl Unpin for ValidatorSetEntry
impl UnsafeUnpin for ValidatorSetEntry
impl UnwindSafe for ValidatorSetEntry
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