solana_stake_program::stake_state

Function from

Source
pub fn from<T: ReadableAccount + StateMut<StakeStateV2>>(
    account: &T,
) -> Option<StakeStateV2>