pub struct Token2022InstructionDecoder;Expand description
Generated InstructionDecoder implementation
Trait Implementations§
Source§impl InstructionDecoder for Token2022InstructionDecoder
impl InstructionDecoder for Token2022InstructionDecoder
Source§fn program_id(&self) -> Pubkey
fn program_id(&self) -> Pubkey
Program ID this decoder handles.
Source§fn program_name(&self) -> &'static str
fn program_name(&self) -> &'static str
Human-readable program name (e.g., “Compressed Token Program”).
Source§fn decode(
&self,
data: &[u8],
accounts: &[AccountMeta],
) -> Option<DecodedInstruction>
fn decode( &self, data: &[u8], accounts: &[AccountMeta], ) -> Option<DecodedInstruction>
Decode instruction data into a structured representation.
Returns None if decoding fails or instruction is unknown.
Auto Trait Implementations§
impl Freeze for Token2022InstructionDecoder
impl RefUnwindSafe for Token2022InstructionDecoder
impl Send for Token2022InstructionDecoder
impl Sync for Token2022InstructionDecoder
impl Unpin for Token2022InstructionDecoder
impl UnwindSafe for Token2022InstructionDecoder
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> 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