pub struct Transfer {Show 17 fields
pub token: Pubkey,
pub token_owner: Pubkey,
pub destination_token: Pubkey,
pub destination_owner: Pubkey,
pub mint: Pubkey,
pub metadata: Pubkey,
pub edition: Option<Pubkey>,
pub token_record: Option<Pubkey>,
pub destination_token_record: Option<Pubkey>,
pub authority: Pubkey,
pub payer: Pubkey,
pub system_program: Pubkey,
pub sysvar_instructions: Pubkey,
pub spl_token_program: Pubkey,
pub spl_ata_program: Pubkey,
pub authorization_rules_program: Option<Pubkey>,
pub authorization_rules: Option<Pubkey>,
}Expand description
Accounts.
Fields§
§token: PubkeyToken account
token_owner: PubkeyToken account owner
destination_token: PubkeyDestination token account
destination_owner: PubkeyDestination token account owner
mint: PubkeyMint of token asset
metadata: PubkeyMetadata (pda of [‘metadata’, program id, mint id])
edition: Option<Pubkey>Edition of token asset
token_record: Option<Pubkey>Owner token record account
destination_token_record: Option<Pubkey>Destination token record account
Transfer authority (token owner or delegate)
payer: PubkeyPayer
system_program: PubkeySystem Program
sysvar_instructions: PubkeyInstructions sysvar account
spl_token_program: PubkeySPL Token Program
spl_ata_program: PubkeySPL Associated Token Account program
Token Authorization Rules Program
Token Authorization Rules account
Implementations§
Source§impl Transfer
impl Transfer
pub fn instruction(&self, args: TransferInstructionArgs) -> Instruction
pub fn instruction_with_remaining_accounts( &self, args: TransferInstructionArgs, remaining_accounts: &[AccountMeta], ) -> Instruction
Auto Trait Implementations§
impl Freeze for Transfer
impl RefUnwindSafe for Transfer
impl Send for Transfer
impl Sync for Transfer
impl Unpin for Transfer
impl UnsafeUnpin for Transfer
impl UnwindSafe for Transfer
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