Enum solana_runtime::stakes::StakesEnum
source · pub enum StakesEnum {
Accounts(Stakes<StakeAccount<Delegation>>),
Delegations(Stakes<Delegation>),
}
Variants§
Implementations§
source§impl StakesEnum
impl StakesEnum
pub fn vote_accounts(&self) -> &VoteAccounts
Trait Implementations§
source§impl AbiExample for StakesEnum
impl AbiExample for StakesEnum
source§impl Debug for StakesEnum
impl Debug for StakesEnum
source§impl From<Stakes<Delegation>> for StakesEnum
impl From<Stakes<Delegation>> for StakesEnum
source§impl From<Stakes<StakeAccount<Delegation>>> for StakesEnum
impl From<Stakes<StakeAccount<Delegation>>> for StakesEnum
source§impl PartialEq<StakesEnum> for StakesEnum
impl PartialEq<StakesEnum> for StakesEnum
source§fn eq(&self, other: &StakesEnum) -> bool
fn eq(&self, other: &StakesEnum) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.