pub struct RpcVoteAccountInfo {
pub vote_pubkey: String,
pub node_pubkey: String,
pub activated_stake: u64,
pub commission: u8,
pub inflation_rewards_commission_bps: Option<u16>,
pub epoch_vote_account: bool,
pub epoch_credits: Vec<(u64, u64, u64)>,
pub last_vote: u64,
pub root_slot: u64,
}Fields§
§vote_pubkey: StringVote account address, as base-58 encoded string
node_pubkey: StringThe validator identity, as base-58 encoded string
activated_stake: u64The current stake, in lamports, delegated to this vote account
commission: u8An 8-bit unsigned integer used as a fraction (commission/100) for
rewards payout. Before SIMD-0291 activation, this is the native
commission value. After activation, this is derived from basis
points with: bps.div_ceil(100).min(255).
inflation_rewards_commission_bps: Option<u16>A 16-bit unsigned integer used as the raw basis points for rewards
payout. Before SIMD-0291 activation, this is derived from the
percentage commission: percent * 100. After activation, this is the
native basis points value stored in vote state.
Note: Field is None when querying a node that predates this field.
epoch_vote_account: boolWhether this account is staked for the current epoch
epoch_credits: Vec<(u64, u64, u64)>Latest history of earned credits for up to MAX_RPC_VOTE_ACCOUNT_INFO_EPOCH_CREDITS_HISTORY epochs
each tuple is (Epoch, credits, prev_credits)
last_vote: u64Most recent slot voted on by this vote account (0 if no votes exist)
root_slot: u64Current root slot for this vote account (0 if no root slot exists)
Trait Implementations§
Source§impl Clone for RpcVoteAccountInfo
impl Clone for RpcVoteAccountInfo
Source§fn clone(&self) -> RpcVoteAccountInfo
fn clone(&self) -> RpcVoteAccountInfo
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for RpcVoteAccountInfo
impl Debug for RpcVoteAccountInfo
Source§impl<'de> Deserialize<'de> for RpcVoteAccountInfo
impl<'de> Deserialize<'de> for RpcVoteAccountInfo
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<RpcVoteAccountInfo, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<RpcVoteAccountInfo, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
impl Eq for RpcVoteAccountInfo
Source§impl PartialEq for RpcVoteAccountInfo
impl PartialEq for RpcVoteAccountInfo
Source§impl Serialize for RpcVoteAccountInfo
impl Serialize for RpcVoteAccountInfo
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
impl StructuralPartialEq for RpcVoteAccountInfo
Auto Trait Implementations§
impl Freeze for RpcVoteAccountInfo
impl RefUnwindSafe for RpcVoteAccountInfo
impl Send for RpcVoteAccountInfo
impl Sync for RpcVoteAccountInfo
impl Unpin for RpcVoteAccountInfo
impl UnsafeUnpin for RpcVoteAccountInfo
impl UnwindSafe for RpcVoteAccountInfo
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
impl<T> ErasedDestructor for Twhere
T: 'static,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
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>
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>
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