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§
Sourcefn as_key_ref(&self) -> &Pubkey
fn as_key_ref(&self) -> &Pubkey
Returns the Pubkey of the account or key as a reference.