Trait anchor_lang::Key

source ·
pub trait Key {
    // Required method
    fn key(&self) -> Pubkey;
}
Expand description

Defines the Pubkey of an account.

Required Methods§

source

fn key(&self) -> Pubkey

Implementors§

source§

impl Key for Pubkey

source§

impl<'info> Key for Signer<'info>

source§

impl<'info> Key for SystemAccount<'info>

source§

impl<'info> Key for UncheckedAccount<'info>

source§

impl<'info> Key for AccountInfo<'info>

source§

impl<'info, T: Sysvar> Key for Sysvar<'info, T>

source§

impl<'info, T: AccountDeserialize> Key for Interface<'info, T>

source§

impl<'info, T: AccountDeserialize> Key for Program<'info, T>

source§

impl<'info, T: AccountSerialize + AccountDeserialize + Clone> Key for Account<'info, T>

source§

impl<'info, T: AccountSerialize + AccountDeserialize + Clone> Key for InterfaceAccount<'info, T>

source§

impl<'info, T: ZeroCopy + Owner> Key for AccountLoader<'info, T>