pub struct TransferCpiAccounts<'a, 'b> {Show 17 fields
pub token: &'b AccountInfo<'a>,
pub token_owner: &'b AccountInfo<'a>,
pub destination_token: &'b AccountInfo<'a>,
pub destination_owner: &'b AccountInfo<'a>,
pub mint: &'b AccountInfo<'a>,
pub metadata: &'b AccountInfo<'a>,
pub edition: Option<&'b AccountInfo<'a>>,
pub token_record: Option<&'b AccountInfo<'a>>,
pub destination_token_record: Option<&'b AccountInfo<'a>>,
pub authority: &'b AccountInfo<'a>,
pub payer: &'b AccountInfo<'a>,
pub system_program: &'b AccountInfo<'a>,
pub sysvar_instructions: &'b AccountInfo<'a>,
pub spl_token_program: &'b AccountInfo<'a>,
pub spl_ata_program: &'b AccountInfo<'a>,
pub authorization_rules_program: Option<&'b AccountInfo<'a>>,
pub authorization_rules: Option<&'b AccountInfo<'a>>,
}
Expand description
transfer
CPI accounts.
Fields§
§token: &'b AccountInfo<'a>
Token account
token_owner: &'b AccountInfo<'a>
Token account owner
destination_token: &'b AccountInfo<'a>
Destination token account
destination_owner: &'b AccountInfo<'a>
Destination token account owner
mint: &'b AccountInfo<'a>
Mint of token asset
metadata: &'b AccountInfo<'a>
Metadata (pda of [‘metadata’, program id, mint id])
edition: Option<&'b AccountInfo<'a>>
Edition of token asset
token_record: Option<&'b AccountInfo<'a>>
Owner token record account
destination_token_record: Option<&'b AccountInfo<'a>>
Destination token record account
Transfer authority (token owner or delegate)
payer: &'b AccountInfo<'a>
Payer
system_program: &'b AccountInfo<'a>
System Program
sysvar_instructions: &'b AccountInfo<'a>
Instructions sysvar account
spl_token_program: &'b AccountInfo<'a>
SPL Token Program
spl_ata_program: &'b AccountInfo<'a>
SPL Associated Token Account program
Token Authorization Rules Program
Token Authorization Rules account
Auto Trait Implementations§
impl<'a, 'b> !RefUnwindSafe for TransferCpiAccounts<'a, 'b>
impl<'a, 'b> !Send for TransferCpiAccounts<'a, 'b>
impl<'a, 'b> !Sync for TransferCpiAccounts<'a, 'b>
impl<'a, 'b> Unpin for TransferCpiAccounts<'a, 'b>
impl<'a, 'b> !UnwindSafe for TransferCpiAccounts<'a, 'b>
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