pub struct Transfer {
Show 18 fields pub token: Pubkey, pub token_owner: Pubkey, pub destination: Pubkey, pub destination_owner: Pubkey, pub mint: Pubkey, pub metadata: Pubkey, pub edition: Option<Pubkey>, pub owner_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>, pub args: TransferArgs,
}

Fields§

§token: Pubkey§token_owner: Pubkey§destination: Pubkey§destination_owner: Pubkey§mint: Pubkey§metadata: Pubkey§edition: Option<Pubkey>§owner_token_record: Option<Pubkey>§destination_token_record: Option<Pubkey>§authority: Pubkey§payer: Pubkey§system_program: Pubkey§sysvar_instructions: Pubkey§spl_token_program: Pubkey§spl_ata_program: Pubkey§authorization_rules_program: Option<Pubkey>§authorization_rules: Option<Pubkey>§args: TransferArgs

Trait Implementations§

Transfer tokens from a token account.

Accounts:

  1. [writable] Token account
  2. [] Token account owner
  3. [writable] Destination token account
  4. [] Destination token account owner
  5. [] Mint of token asset
  6. [writable] Metadata account
  7. [optional] Edition of token asset
  8. `[signer] Transfer authority (token or delegate owner)
  9. [optional, writable] Delegate record PDA
  10. [signer, writable] Payer
  11. [] System Program
  12. [] Instructions sysvar account
  13. [] SPL Token Program
  14. [] SPL Associated Token Account program
  15. [optional] Token Authorization Rules Program
  16. [optional] Token Authorization Rules account

Auto Trait Implementations§

Blanket Implementations§

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The alignment of pointer.
The type for initializers.
Initializes a with the given initializer. Read more
Dereferences the given pointer. Read more
Mutably dereferences the given pointer. Read more
Drops the object pointed to by the given pointer. Read more
Should always be Self
The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.