Enum solana_stake_program::stake_state::StakeState [−]
Variants
Initialized(Meta)Implementations
impl StakeState
impl StakeStatepub fn get_rent_exempt_reserve(rent: &Rent) -> u64pub fn delegation(&self) -> Option<Delegation>Trait Implementations
impl AbiExample for StakeState
impl AbiExample for StakeStatepub fn example() -> StakeStateimpl Clone for StakeState
impl Clone for StakeStatepub fn clone(&self) -> StakeState
pub fn clone(&self) -> StakeStateReturns a copy of the value. Read more
Performs copy-assignment from source. Read more
impl Debug for StakeState
impl Debug for StakeStateimpl Default for StakeState
impl Default for StakeStatepub fn default() -> StakeState
pub fn default() -> StakeStateReturns the “default value” for a type. Read more
impl<'de> Deserialize<'de> for StakeState
impl<'de> Deserialize<'de> for StakeStatepub 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 StakeStatepub fn eq(&self, other: &StakeState) -> bool
pub fn eq(&self, other: &StakeState) -> boolThis 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) -> boolThis method tests for !=.
impl Serialize for StakeState
impl Serialize for StakeStatepub 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 StakeStateimpl StructuralPartialEq for StakeStateAuto Trait Implementations
impl RefUnwindSafe for StakeStateimpl Send for StakeStateimpl Sync for StakeStateimpl Unpin for StakeStateimpl UnwindSafe for StakeStateBlanket 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 = TShould always be Self
pub fn vzip(self) -> V