#[repr(C)]pub struct InstructionAccount<'a> {
pub address: &'a Address,
pub is_writable: bool,
pub is_signer: bool,
}Expand description
Metadata for an account referenced in a CPI instruction.
Fields§
§address: &'a AddressPublic key of the account.
is_writable: boolWhether the account should be writable.
is_signer: boolWhether the account should sign.
Implementations§
Source§impl<'a> InstructionAccount<'a>
impl<'a> InstructionAccount<'a>
Trait Implementations§
Source§impl<'a> Clone for InstructionAccount<'a>
impl<'a> Clone for InstructionAccount<'a>
Source§fn clone(&self) -> InstructionAccount<'a>
fn clone(&self) -> InstructionAccount<'a>
Returns a duplicate 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 moreSource§impl<'a> Debug for InstructionAccount<'a>
impl<'a> Debug for InstructionAccount<'a>
Source§impl<'a> From<&'a AccountView> for InstructionAccount<'a>
impl<'a> From<&'a AccountView> for InstructionAccount<'a>
Source§fn from(view: &'a AccountView) -> Self
fn from(view: &'a AccountView) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl<'a> Freeze for InstructionAccount<'a>
impl<'a> RefUnwindSafe for InstructionAccount<'a>
impl<'a> Send for InstructionAccount<'a>
impl<'a> Sync for InstructionAccount<'a>
impl<'a> Unpin for InstructionAccount<'a>
impl<'a> UnsafeUnpin for InstructionAccount<'a>
impl<'a> UnwindSafe for InstructionAccount<'a>
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more