solana_sdk::keyed_account

Function is_executable

Source
pub fn is_executable(
    keyed_accounts: &[KeyedAccount<'_>],
) -> Result<bool, InstructionError>
👎Deprecated since 1.11.0: Please use BorrowedAccount instead of KeyedAccount
Expand description

Return true if the first keyed_account is executable, used to determine if the loader should call a program’s ‘main’