pub struct TXInstruction {
pub program_id: Pubkey,
pub keys: Vec<TXAccountMeta>,
pub data: Vec<u8>,
}
Expand description
Instruction.
Fields§
§program_id: Pubkey
Pubkey of the instruction processor that executes this instruction
keys: Vec<TXAccountMeta>
Metadata for what accounts should be passed to the instruction processor
data: Vec<u8>
Opaque data passed to the instruction processor
Implementations§
Source§impl TXInstruction
impl TXInstruction
Sourcepub fn space(&self) -> usize
pub fn space(&self) -> usize
Space that a TXInstruction takes up.
Trait Implementations§
Source§impl BorshDeserialize for TXInstruction
impl BorshDeserialize for TXInstruction
Source§impl BorshSerialize for TXInstruction
impl BorshSerialize for TXInstruction
Source§impl Clone for TXInstruction
impl Clone for TXInstruction
Source§fn clone(&self) -> TXInstruction
fn clone(&self) -> TXInstruction
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 Debug for TXInstruction
impl Debug for TXInstruction
Source§impl Default for TXInstruction
impl Default for TXInstruction
Source§fn default() -> TXInstruction
fn default() -> TXInstruction
Returns the “default value” for a type. Read more
Source§impl From<&TXInstruction> for Instruction
impl From<&TXInstruction> for Instruction
Source§fn from(tx: &TXInstruction) -> Instruction
fn from(tx: &TXInstruction) -> Instruction
Converts to this type from the input type.
Source§impl PartialEq for TXInstruction
impl PartialEq for TXInstruction
impl StructuralPartialEq for TXInstruction
Auto Trait Implementations§
impl Freeze for TXInstruction
impl RefUnwindSafe for TXInstruction
impl Send for TXInstruction
impl Sync for TXInstruction
impl Unpin for TXInstruction
impl UnwindSafe for TXInstruction
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more