Struct solana_sdk::keyed_account::KeyedAccount
source · [−]#[repr(C)]pub struct KeyedAccount<'a> {
pub account: &'a RefCell<AccountSharedData>,
/* private fields */
}
Please use BorrowedAccount instead of KeyedAccount
Fields
account: &'a RefCell<AccountSharedData>
Please use BorrowedAccount instead of KeyedAccount
Implementations
sourceimpl<'a> KeyedAccount<'a>
impl<'a> KeyedAccount<'a>
pub fn signer_key(&self) -> Option<&Pubkey>
Please use BorrowedAccount instead of KeyedAccount
pub fn unsigned_key(&self) -> &Pubkey
Please use BorrowedAccount instead of KeyedAccount
pub fn is_writable(&self) -> bool
Please use BorrowedAccount instead of KeyedAccount
pub fn lamports(&self) -> Result<u64, InstructionError>
Please use BorrowedAccount instead of KeyedAccount
pub fn data_len(&self) -> Result<usize, InstructionError>
Please use BorrowedAccount instead of KeyedAccount
pub fn data_is_empty(&self) -> Result<bool, InstructionError>
Please use BorrowedAccount instead of KeyedAccount
pub fn owner(&self) -> Result<Pubkey, InstructionError>
Please use BorrowedAccount instead of KeyedAccount
pub fn executable(&self) -> Result<bool, InstructionError>
Please use BorrowedAccount instead of KeyedAccount
pub fn rent_epoch(&self) -> Result<Epoch, InstructionError>
Please use BorrowedAccount instead of KeyedAccount
pub fn try_account_ref(
&'a self
) -> Result<Ref<'_, AccountSharedData>, InstructionError>
Please use BorrowedAccount instead of KeyedAccount
pub fn try_account_ref_mut(
&'a self
) -> Result<RefMut<'_, AccountSharedData>, InstructionError>
Please use BorrowedAccount instead of KeyedAccount
pub fn new(
key: &'a Pubkey,
is_signer: bool,
account: &'a RefCell<AccountSharedData>
) -> Self
Please use BorrowedAccount instead of KeyedAccount
pub fn new_readonly(
key: &'a Pubkey,
is_signer: bool,
account: &'a RefCell<AccountSharedData>
) -> Self
Please use BorrowedAccount instead of KeyedAccount
Trait Implementations
sourceimpl<'a> Clone for KeyedAccount<'a>
impl<'a> Clone for KeyedAccount<'a>
sourcefn clone(&self) -> KeyedAccount<'a>
fn clone(&self) -> KeyedAccount<'a>
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read more