pub struct NestedInstruction {
pub metadata: InstructionMetadata,
pub instruction: Instruction,
pub inner_instructions: NestedInstructions,
}
Expand description
Represents a nested instruction with metadata, including potential inner instructions.
The NestedInstruction
struct allows for recursive instruction handling,
where each instruction may have associated metadata and a list of nested
instructions.
§Fields
metadata
: The metadata associated with the instruction.instruction
: The Solana instruction being processed.inner_instructions
: A vector ofNestedInstruction
, representing any nested instructions.
Fields§
§metadata: InstructionMetadata
§instruction: Instruction
§inner_instructions: NestedInstructions
Trait Implementations§
Source§impl Clone for NestedInstruction
impl Clone for NestedInstruction
Source§fn clone(&self) -> NestedInstruction
fn clone(&self) -> NestedInstruction
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 moreAuto Trait Implementations§
impl Freeze for NestedInstruction
impl RefUnwindSafe for NestedInstruction
impl Send for NestedInstruction
impl Sync for NestedInstruction
impl Unpin for NestedInstruction
impl UnwindSafe for NestedInstruction
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