/// Decode the Settings account from `AccountInfo`.
/// Verifies the address before deserializing the data.
Decode the Settings account from `AccountInfo`.
Verifies the address before deserializing the data.
Decode the Settings account from ` AccountInfo ` . Verifies the address before deserializing the data .
pub fn from_account_info(
        info: &AccountInfo,
        program_id: &Pubkey,
    ) -> Result<Settings, ProgramError> {
        Self::verify_program_address(info.key, program_id)?;
        Self::try_from_slice(&info.data.borrow())
            .map_err(|_| StakingError::ProgramNotInitialized.into())
    }
pub fn from_account_info ( info : & AccountInfo , program_id : & Pubkey , ) -> Result < Settings , ProgramError > { Self :: verify_program_address ( info . key , program_id ) ? ; Self :: try_from_slice ( & info . data . borrow ( ) ) . map_err ( | _ | StakingError :: ProgramNotInitialized . into ( ) ) }
Decode the Settings account from `AccountInfo`.
Decode the Settings account from ` AccountInfo ` .
info
&AccountInfo
program_id
&Pubkey