pub struct DecodedInstruction<T> {
    pub program_id: Pubkey,
    pub data: T,
    pub accounts: Vec<AccountMeta>,
}Expand description
A decoded instruction containing program ID, data, and associated accounts.
The DecodedInstruction struct represents the outcome of decoding a raw
instruction, encapsulating its program ID, parsed data, and the accounts
involved.
§Type Parameters
- T: The type representing the decoded data for the instruction.
§Fields
- program_id: The program ID that owns the instruction.
- data: The decoded data payload for the instruction, of type- T.
- accounts: A vector of- AccountMeta, representing the accounts involved in the instruction.
Fields§
§program_id: Pubkey§data: T§accounts: Vec<AccountMeta>Trait Implementations§
Source§impl<T: Clone> Clone for DecodedInstruction<T>
 
impl<T: Clone> Clone for DecodedInstruction<T>
Source§fn clone(&self) -> DecodedInstruction<T>
 
fn clone(&self) -> DecodedInstruction<T>
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 moreSource§impl<T: Debug> Debug for DecodedInstruction<T>
 
impl<T: Debug> Debug for DecodedInstruction<T>
Source§impl<'de, T> Deserialize<'de> for DecodedInstruction<T>where
    T: Deserialize<'de>,
 
impl<'de, T> Deserialize<'de> for DecodedInstruction<T>where
    T: Deserialize<'de>,
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
    __D: Deserializer<'de>,
 
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
    __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl<T> Freeze for DecodedInstruction<T>where
    T: Freeze,
impl<T> RefUnwindSafe for DecodedInstruction<T>where
    T: RefUnwindSafe,
impl<T> Send for DecodedInstruction<T>where
    T: Send,
impl<T> Sync for DecodedInstruction<T>where
    T: Sync,
impl<T> Unpin for DecodedInstruction<T>where
    T: Unpin,
impl<T> UnwindSafe for DecodedInstruction<T>where
    T: UnwindSafe,
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> Instrument for T
 
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
 
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
 
fn in_current_span(self) -> Instrumented<Self>
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