Struct solana_cli_output::CliVoteAccount
source · pub struct CliVoteAccount {Show 13 fields
pub account_balance: u64,
pub validator_identity: String,
pub authorized_voters: CliAuthorizedVoters,
pub authorized_withdrawer: String,
pub credits: u64,
pub commission: u8,
pub root_slot: Option<Slot>,
pub recent_timestamp: BlockTimestamp,
pub votes: Vec<CliLandedVote>,
pub epoch_voting_history: Vec<CliEpochVotingHistory>,
pub use_lamports_unit: bool,
pub use_csv: bool,
pub epoch_rewards: Option<Vec<CliEpochReward>>,
}
Fields§
§account_balance: u64
§validator_identity: String
§credits: u64
§commission: u8
§root_slot: Option<Slot>
§recent_timestamp: BlockTimestamp
§votes: Vec<CliLandedVote>
§epoch_voting_history: Vec<CliEpochVotingHistory>
§use_lamports_unit: bool
§use_csv: bool
§epoch_rewards: Option<Vec<CliEpochReward>>
Trait Implementations§
source§impl Default for CliVoteAccount
impl Default for CliVoteAccount
source§fn default() -> CliVoteAccount
fn default() -> CliVoteAccount
Returns the “default value” for a type. Read more
source§impl<'de> Deserialize<'de> for CliVoteAccount
impl<'de> Deserialize<'de> for CliVoteAccount
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 Display for CliVoteAccount
impl Display for CliVoteAccount
source§impl QuietDisplay for CliVoteAccount
impl QuietDisplay for CliVoteAccount
source§impl Serialize for CliVoteAccount
impl Serialize for CliVoteAccount
source§impl VerboseDisplay for CliVoteAccount
impl VerboseDisplay for CliVoteAccount
Auto Trait Implementations§
impl Freeze for CliVoteAccount
impl RefUnwindSafe for CliVoteAccount
impl Send for CliVoteAccount
impl Sync for CliVoteAccount
impl Unpin for CliVoteAccount
impl UnwindSafe for CliVoteAccount
Blanket Implementations§
source§impl<T> AbiEnumVisitor for T
impl<T> AbiEnumVisitor for T
default fn visit_for_abi( &self, digester: &mut AbiDigester ) -> Result<AbiDigester, DigestError>
source§impl<T> AbiEnumVisitor for T
impl<T> AbiEnumVisitor for T
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
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>
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