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