Struct solana_sdk::account::KeyedAccount
source · #[repr(C)]pub struct KeyedAccount<'a> {
pub account: &'a mut Account,
/* private fields */
}
Fields
account: &'a mut Account
Implementations
sourceimpl<'a> KeyedAccount<'a>
impl<'a> KeyedAccount<'a>
pub fn signer_key(&self) -> Option<&Pubkey>
pub fn unsigned_key(&self) -> &Pubkey
pub fn new(
key: &'a Pubkey,
is_signer: bool,
account: &'a mut Account
) -> KeyedAccount<'a>
Trait Implementations
sourceimpl<'a> Debug for KeyedAccount<'a>
impl<'a> Debug for KeyedAccount<'a>
sourceimpl<'a> From<&'a mut (Pubkey, Account)> for KeyedAccount<'a>
impl<'a> From<&'a mut (Pubkey, Account)> for KeyedAccount<'a>
Auto Trait Implementations
impl<'a> RefUnwindSafe for KeyedAccount<'a>
impl<'a> Send for KeyedAccount<'a>
impl<'a> Sync for KeyedAccount<'a>
impl<'a> Unpin for KeyedAccount<'a>
impl<'a> !UnwindSafe for KeyedAccount<'a>
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more