pub enum TokenProgramInstruction {
Show 28 variants
AmountToUiAmount {
program_id: Pubkey,
data: AmountToUiAmount,
accounts: AmountToUiAmountInstructionAccounts,
},
Approve {
program_id: Pubkey,
data: Approve,
accounts: ApproveInstructionAccounts,
},
ApproveChecked {
program_id: Pubkey,
data: ApproveChecked,
accounts: ApproveCheckedInstructionAccounts,
},
Batch {
program_id: Pubkey,
data: Batch,
accounts: BatchInstructionAccounts,
},
Burn {
program_id: Pubkey,
data: Burn,
accounts: BurnInstructionAccounts,
},
BurnChecked {
program_id: Pubkey,
data: BurnChecked,
accounts: BurnCheckedInstructionAccounts,
},
CloseAccount {
program_id: Pubkey,
data: CloseAccount,
accounts: CloseAccountInstructionAccounts,
},
FreezeAccount {
program_id: Pubkey,
data: FreezeAccount,
accounts: FreezeAccountInstructionAccounts,
},
GetAccountDataSize {
program_id: Pubkey,
data: GetAccountDataSize,
accounts: GetAccountDataSizeInstructionAccounts,
},
InitializeAccount {
program_id: Pubkey,
data: InitializeAccount,
accounts: InitializeAccountInstructionAccounts,
},
InitializeAccount2 {
program_id: Pubkey,
data: InitializeAccount2,
accounts: InitializeAccount2InstructionAccounts,
},
InitializeAccount3 {
program_id: Pubkey,
data: InitializeAccount3,
accounts: InitializeAccount3InstructionAccounts,
},
InitializeImmutableOwner {
program_id: Pubkey,
data: InitializeImmutableOwner,
accounts: InitializeImmutableOwnerInstructionAccounts,
},
InitializeMint {
program_id: Pubkey,
data: InitializeMint,
accounts: InitializeMintInstructionAccounts,
},
InitializeMint2 {
program_id: Pubkey,
data: InitializeMint2,
accounts: InitializeMint2InstructionAccounts,
},
InitializeMultisig {
program_id: Pubkey,
data: InitializeMultisig,
accounts: InitializeMultisigInstructionAccounts,
},
InitializeMultisig2 {
program_id: Pubkey,
data: InitializeMultisig2,
accounts: InitializeMultisig2InstructionAccounts,
},
MintTo {
program_id: Pubkey,
data: MintTo,
accounts: MintToInstructionAccounts,
},
MintToChecked {
program_id: Pubkey,
data: MintToChecked,
accounts: MintToCheckedInstructionAccounts,
},
Revoke {
program_id: Pubkey,
data: Revoke,
accounts: RevokeInstructionAccounts,
},
SetAuthority {
program_id: Pubkey,
data: SetAuthority,
accounts: SetAuthorityInstructionAccounts,
},
SyncNative {
program_id: Pubkey,
data: SyncNative,
accounts: SyncNativeInstructionAccounts,
},
ThawAccount {
program_id: Pubkey,
data: ThawAccount,
accounts: ThawAccountInstructionAccounts,
},
Transfer {
program_id: Pubkey,
data: Transfer,
accounts: TransferInstructionAccounts,
},
TransferChecked {
program_id: Pubkey,
data: TransferChecked,
accounts: TransferCheckedInstructionAccounts,
},
UiAmountToAmount {
program_id: Pubkey,
data: UiAmountToAmount,
accounts: UiAmountToAmountInstructionAccounts,
},
UnwrapLamports {
program_id: Pubkey,
data: UnwrapLamports,
accounts: UnwrapLamportsInstructionAccounts,
},
WithdrawExcessLamports {
program_id: Pubkey,
data: WithdrawExcessLamports,
accounts: WithdrawExcessLamportsInstructionAccounts,
},
}Variants§
AmountToUiAmount
Approve
ApproveChecked
Batch
Burn
BurnChecked
CloseAccount
FreezeAccount
GetAccountDataSize
InitializeAccount
InitializeAccount2
InitializeAccount3
InitializeImmutableOwner
Fields
InitializeMint
InitializeMint2
InitializeMultisig
InitializeMultisig2
MintTo
MintToChecked
Revoke
SetAuthority
SyncNative
ThawAccount
Transfer
TransferChecked
UiAmountToAmount
UnwrapLamports
WithdrawExcessLamports
Fields
§
data: WithdrawExcessLamportsTrait Implementations§
Source§impl Clone for TokenProgramInstruction
impl Clone for TokenProgramInstruction
Source§impl Debug for TokenProgramInstruction
impl Debug for TokenProgramInstruction
Source§impl PartialEq for TokenProgramInstruction
impl PartialEq for TokenProgramInstruction
impl StructuralPartialEq for TokenProgramInstruction
Auto Trait Implementations§
impl Freeze for TokenProgramInstruction
impl RefUnwindSafe for TokenProgramInstruction
impl Send for TokenProgramInstruction
impl Sync for TokenProgramInstruction
impl Unpin for TokenProgramInstruction
impl UnsafeUnpin for TokenProgramInstruction
impl UnwindSafe for TokenProgramInstruction
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