pub enum StakesEnum {
Accounts(Stakes<StakeAccount<Delegation>>),
Delegations(Stakes<Delegation>),
}
Variants§
Accounts(Stakes<StakeAccount<Delegation>>)
Delegations(Stakes<Delegation>)
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§fn from(stakes: Stakes<Delegation>) -> Self
fn from(stakes: Stakes<Delegation>) -> Self
Converts to this type from the input type.
source§impl From<Stakes<StakeAccount<Delegation>>> for StakesEnum
impl From<Stakes<StakeAccount<Delegation>>> for StakesEnum
source§fn from(stakes: Stakes<StakeAccount<Delegation>>) -> Self
fn from(stakes: Stakes<StakeAccount<Delegation>>) -> Self
Converts to this type from the input type.
source§impl PartialEq for StakesEnum
impl PartialEq for StakesEnum
Auto Trait Implementations§
impl !Freeze for StakesEnum
impl RefUnwindSafe for StakesEnum
impl Send for StakesEnum
impl Sync for StakesEnum
impl Unpin for StakesEnum
impl UnwindSafe for StakesEnum
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> 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