pub struct BorrowedInstruction<'a> {
pub program_id: &'a Pubkey,
pub accounts: Vec<BorrowedAccountMeta<'a>>,
pub data: &'a [u8],
}
Expand description
Borrowed version of Instruction
.
This struct is used by the runtime when constructing the sysvar. It is not useful to Solana programs.
Fields§
§program_id: &'a Pubkey
§accounts: Vec<BorrowedAccountMeta<'a>>
§data: &'a [u8]
Auto Trait Implementations§
impl<'a> Freeze for BorrowedInstruction<'a>
impl<'a> RefUnwindSafe for BorrowedInstruction<'a>
impl<'a> Send for BorrowedInstruction<'a>
impl<'a> Sync for BorrowedInstruction<'a>
impl<'a> Unpin for BorrowedInstruction<'a>
impl<'a> UnwindSafe for BorrowedInstruction<'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