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

Defines the Pubkey of an account.

Required Methods§

fn key(&self) -> Pubkey

Implementors§

§

impl Key for Pubkey

§

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

§

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

§

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

§

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

§

impl<'info, T> Key for Account<'info, T>

§

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

§

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

§

impl<'info, T> Key for InterfaceAccount<'info, T>

§

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

§

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