Struct mpl_token_metadata::instruction::builders::Transfer
source · 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>
§payer: Pubkey
§system_program: Pubkey
§sysvar_instructions: Pubkey
§spl_token_program: Pubkey
§spl_ata_program: Pubkey
§args: TransferArgs
Trait Implementations§
source§impl InstructionBuilder for Transfer
impl InstructionBuilder for Transfer
Transfer tokens from a token account.
Accounts:
[writable]
Token account[]
Token account owner[writable]
Destination token account[]
Destination token account owner[]
Mint of token asset[writable]
Metadata account[optional]
Edition of token asset[optional, writable]
Owner token record account[optional, writable]
Destination token record account[signer]
Transfer authority (token owner or delegate)[signer, writable]
Payer[]
System Program[]
Instructions sysvar account[]
SPL Token Program[]
SPL Associated Token Account program[optional]
Token Authorization Rules Program[optional]
Token Authorization Rules account
fn instruction(&self) -> Instruction
Auto Trait Implementations§
impl RefUnwindSafe for Transfer
impl Send for Transfer
impl Sync for Transfer
impl Unpin 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