Struct solana_program::vote::state::vote_state_0_23_5::VoteState0_23_5
source · pub struct VoteState0_23_5 {
pub node_pubkey: Pubkey,
pub authorized_voter: Pubkey,
pub authorized_voter_epoch: Epoch,
pub prior_voters: CircBuf<(Pubkey, Epoch, Epoch, Slot)>,
pub authorized_withdrawer: Pubkey,
pub commission: u8,
pub votes: VecDeque<Lockout>,
pub root_slot: Option<u64>,
pub epoch_credits: Vec<(Epoch, u64, u64)>,
pub last_timestamp: BlockTimestamp,
}
Fields§
§node_pubkey: Pubkey
the node that votes in this account
the signer for vote transactions
when the authorized voter was set/initialized
prior_voters: CircBuf<(Pubkey, Epoch, Epoch, Slot)>
history of prior authorized voters and the epoch ranges for which they were set
the signer for withdrawals
commission: u8
percentage (0-100) that represents what part of a rewards payout should be given to this VoteAccount
votes: VecDeque<Lockout>
§root_slot: Option<u64>
§epoch_credits: Vec<(Epoch, u64, u64)>
history of how many credits earned by the end of each epoch each tuple is (Epoch, credits, prev_credits)
last_timestamp: BlockTimestamp
most recent timestamp submitted with a vote
Trait Implementations§
source§impl Clone for VoteState0_23_5
impl Clone for VoteState0_23_5
source§fn clone(&self) -> VoteState0_23_5
fn clone(&self) -> VoteState0_23_5
Returns a copy 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 VoteState0_23_5
impl Debug for VoteState0_23_5
source§impl Default for VoteState0_23_5
impl Default for VoteState0_23_5
source§fn default() -> VoteState0_23_5
fn default() -> VoteState0_23_5
Returns the “default value” for a type. Read more
source§impl<'de> Deserialize<'de> for VoteState0_23_5
impl<'de> Deserialize<'de> for VoteState0_23_5
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<VoteState0_23_5> for VoteState0_23_5
impl PartialEq<VoteState0_23_5> for VoteState0_23_5
source§fn eq(&self, other: &VoteState0_23_5) -> bool
fn eq(&self, other: &VoteState0_23_5) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl Serialize for VoteState0_23_5
impl Serialize for VoteState0_23_5
impl Eq for VoteState0_23_5
impl StructuralEq for VoteState0_23_5
impl StructuralPartialEq for VoteState0_23_5
Auto Trait Implementations§
impl RefUnwindSafe for VoteState0_23_5
impl Send for VoteState0_23_5
impl Sync for VoteState0_23_5
impl Unpin for VoteState0_23_5
impl UnwindSafe for VoteState0_23_5
Blanket Implementations§
§impl<T> AbiEnumVisitor for Twhere
T: Serialize + ?Sized,
impl<T> AbiEnumVisitor for Twhere T: Serialize + ?Sized,
default fn visit_for_abi( &self, _digester: &mut AbiDigester ) -> Result<AbiDigester, DigestError>
§impl<T> AbiEnumVisitor for Twhere
T: Serialize + AbiExample + ?Sized,
impl<T> AbiEnumVisitor for Twhere T: Serialize + AbiExample + ?Sized,
default fn visit_for_abi( &self, digester: &mut AbiDigester ) -> Result<AbiDigester, DigestError>
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
§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more