pub struct ValidatorAccountView {
pub node_identity: Pubkey,
pub protocol_key: Pubkey,
pub stake: u64,
pub commission_rate: u16,
}Expand description
A lightweight representation of validator data for use by builtin programs.
This is a simplified view of ValidatorAccount that contains only the
essential fields needed for builtin program logic, without the full
AccountSharedData.
Fields§
§node_identity: PubkeyThe validator’s node identity (their primary pubkey).
protocol_key: PubkeyThe validator’s protocol key for verifying blocks.
stake: u64The total stake delegated to this validator.
commission_rate: u16The validator’s commission rate in basis points (e.g., 835 = 8.35%).
Trait Implementations§
Source§impl Clone for ValidatorAccountView
impl Clone for ValidatorAccountView
Source§fn clone(&self) -> ValidatorAccountView
fn clone(&self) -> ValidatorAccountView
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 ValidatorAccountView
impl Debug for ValidatorAccountView
Source§impl Default for ValidatorAccountView
impl Default for ValidatorAccountView
Source§fn default() -> ValidatorAccountView
fn default() -> ValidatorAccountView
Returns the “default value” for a type. Read more
Source§impl From<&ValidatorAccount> for ValidatorAccountView
impl From<&ValidatorAccount> for ValidatorAccountView
Source§fn from(account: &ValidatorAccount) -> ValidatorAccountView
fn from(account: &ValidatorAccount) -> ValidatorAccountView
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for ValidatorAccountView
impl RefUnwindSafe for ValidatorAccountView
impl Send for ValidatorAccountView
impl Sync for ValidatorAccountView
impl Unpin for ValidatorAccountView
impl UnsafeUnpin for ValidatorAccountView
impl UnwindSafe for ValidatorAccountView
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more