solana_stake_program::stake_state

Function stake_from

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