Struct mpl_token_metadata::instructions::MigrateCpi
source · pub struct MigrateCpi<'a, 'b> {Show 16 fields
pub __program: &'b AccountInfo<'a>,
pub metadata: &'b AccountInfo<'a>,
pub edition: &'b AccountInfo<'a>,
pub token: &'b AccountInfo<'a>,
pub token_owner: &'b AccountInfo<'a>,
pub mint: &'b AccountInfo<'a>,
pub payer: &'b AccountInfo<'a>,
pub authority: &'b AccountInfo<'a>,
pub collection_metadata: &'b AccountInfo<'a>,
pub delegate_record: &'b AccountInfo<'a>,
pub token_record: &'b AccountInfo<'a>,
pub system_program: &'b AccountInfo<'a>,
pub sysvar_instructions: &'b AccountInfo<'a>,
pub spl_token_program: &'b AccountInfo<'a>,
pub authorization_rules_program: Option<&'b AccountInfo<'a>>,
pub authorization_rules: Option<&'b AccountInfo<'a>>,
}
Expand description
migrate
CPI instruction.
Fields§
§__program: &'b AccountInfo<'a>
The program to invoke.
metadata: &'b AccountInfo<'a>
Metadata account
edition: &'b AccountInfo<'a>
Edition account
token: &'b AccountInfo<'a>
Token account
token_owner: &'b AccountInfo<'a>
Token account owner
mint: &'b AccountInfo<'a>
Mint account
payer: &'b AccountInfo<'a>
Payer
Update authority
collection_metadata: &'b AccountInfo<'a>
Collection metadata account
delegate_record: &'b AccountInfo<'a>
Delegate record account
token_record: &'b AccountInfo<'a>
Token record account
system_program: &'b AccountInfo<'a>
System program
sysvar_instructions: &'b AccountInfo<'a>
Instruction sysvar account
spl_token_program: &'b AccountInfo<'a>
SPL Token Program
Token Authorization Rules Program
Token Authorization Rules account
Implementations§
source§impl<'a, 'b> MigrateCpi<'a, 'b>
impl<'a, 'b> MigrateCpi<'a, 'b>
pub fn new( program: &'b AccountInfo<'a>, accounts: MigrateCpiAccounts<'a, 'b> ) -> Self
pub fn invoke(&self) -> ProgramResult
pub fn invoke_with_remaining_accounts( &self, remaining_accounts: &[InstructionAccountInfo<'a, '_>] ) -> ProgramResult
pub fn invoke_signed(&self, signers_seeds: &[&[&[u8]]]) -> ProgramResult
pub fn invoke_signed_with_remaining_accounts( &self, signers_seeds: &[&[&[u8]]], remaining_accounts: &[InstructionAccountInfo<'a, '_>] ) -> ProgramResult
Auto Trait Implementations§
impl<'a, 'b> !RefUnwindSafe for MigrateCpi<'a, 'b>
impl<'a, 'b> !Send for MigrateCpi<'a, 'b>
impl<'a, 'b> !Sync for MigrateCpi<'a, 'b>
impl<'a, 'b> Unpin for MigrateCpi<'a, 'b>
impl<'a, 'b> !UnwindSafe for MigrateCpi<'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