Function spl_governance::tools::account::get_account_data[][src]

pub fn get_account_data<T: BorshDeserialize + IsInitialized>(
    account_info: &AccountInfo<'_>,
    owner_program_id: &Pubkey
) -> Result<T, ProgramError>
Expand description

Deserializes account and checks it’s initialized and owned by the specified program