Enum solana_stake_program::stake_state::StakeState [−]
Variants
Initialized(Meta)
Implementations
impl StakeState
impl StakeState
pub fn get_rent_exempt_reserve(rent: &Rent) -> u64
pub fn delegation(&self) -> Option<Delegation>
Trait Implementations
impl AbiExample for StakeState
impl AbiExample for StakeState
pub fn example() -> StakeState
impl Clone for StakeState
impl Clone for StakeState
pub fn clone(&self) -> StakeState
pub fn clone(&self) -> StakeState
Returns a copy of the value. Read more
Performs copy-assignment from source
. Read more
impl Debug for StakeState
impl Debug for StakeState
impl Default for StakeState
impl Default for StakeState
pub fn default() -> StakeState
pub fn default() -> StakeState
Returns the “default value” for a type. Read more
impl<'de> Deserialize<'de> for StakeState
impl<'de> Deserialize<'de> for StakeState
pub fn deserialize<__D>(
__deserializer: __D
) -> Result<StakeState, <__D as Deserializer<'de>>::Error> where
__D: Deserializer<'de>,
pub fn deserialize<__D>(
__deserializer: __D
) -> Result<StakeState, <__D as Deserializer<'de>>::Error> where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl PartialEq<StakeState> for StakeState
impl PartialEq<StakeState> for StakeState
pub fn eq(&self, other: &StakeState) -> bool
pub fn eq(&self, other: &StakeState) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
pub fn ne(&self, other: &StakeState) -> bool
pub fn ne(&self, other: &StakeState) -> bool
This method tests for !=
.
impl Serialize for StakeState
impl Serialize for StakeState
pub fn serialize<__S>(
&self,
__serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error> where
__S: Serializer,
pub fn serialize<__S>(
&self,
__serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error> where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
impl Copy for StakeState
impl StructuralPartialEq for StakeState
Auto Trait Implementations
impl RefUnwindSafe for StakeState
impl Send for StakeState
impl Sync for StakeState
impl Unpin for StakeState
impl UnwindSafe for StakeState
Blanket Implementations
pub default fn visit_for_abi(
&self,
_digester: &mut AbiDigester
) -> Result<AbiDigester, DigestError>
pub default fn visit_for_abi(
&self,
digester: &mut AbiDigester
) -> Result<AbiDigester, DigestError>
Mutably borrows from an owned value. Read more
Instruments this type with the provided Span
, returning an
Instrumented
wrapper. Read more
type Output = T
type Output = T
Should always be Self
pub fn vzip(self) -> V