AsKeyRef

Trait AsKeyRef 

Source
pub trait AsKeyRef {
    // Required method
    fn as_key_ref(&self) -> &Pubkey;
}
Expand description

Defines the Pubkey of an account, fetching it as a reference.

Required Methods§

Source

fn as_key_ref(&self) -> &Pubkey

Returns the Pubkey of the account or key as a reference.

Implementations on Foreign Types§

Source§

impl AsKeyRef for Pubkey

Source§

impl<'info> AsKeyRef for Signer<'info>

Source§

impl<'info> AsKeyRef for SystemAccount<'info>

Source§

impl<'info> AsKeyRef for UncheckedAccount<'info>

Source§

impl<'info> AsKeyRef for AccountInfo<'info>

Source§

impl<'info, T: AccountSerialize + AccountDeserialize + Owner + Clone> AsKeyRef for Box<Account<'info, T>>

Source§

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

Source§

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

Source§

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

Implementors§