pub struct MigrateCpiBuilder<'a, 'b> { /* private fields */ }
Expand description
migrate
CPI instruction builder.
Implementations§
source§impl<'a, 'b> MigrateCpiBuilder<'a, 'b>
impl<'a, 'b> MigrateCpiBuilder<'a, 'b>
pub fn new(program: &'b AccountInfo<'a>) -> Self
sourcepub fn metadata(&mut self, metadata: &'b AccountInfo<'a>) -> &mut Self
pub fn metadata(&mut self, metadata: &'b AccountInfo<'a>) -> &mut Self
Metadata account
sourcepub fn edition(&mut self, edition: &'b AccountInfo<'a>) -> &mut Self
pub fn edition(&mut self, edition: &'b AccountInfo<'a>) -> &mut Self
Edition account
sourcepub fn token(&mut self, token: &'b AccountInfo<'a>) -> &mut Self
pub fn token(&mut self, token: &'b AccountInfo<'a>) -> &mut Self
Token account
sourcepub fn token_owner(&mut self, token_owner: &'b AccountInfo<'a>) -> &mut Self
pub fn token_owner(&mut self, token_owner: &'b AccountInfo<'a>) -> &mut Self
Token account owner
sourcepub fn mint(&mut self, mint: &'b AccountInfo<'a>) -> &mut Self
pub fn mint(&mut self, mint: &'b AccountInfo<'a>) -> &mut Self
Mint account
sourcepub fn payer(&mut self, payer: &'b AccountInfo<'a>) -> &mut Self
pub fn payer(&mut self, payer: &'b AccountInfo<'a>) -> &mut Self
Payer
Update authority
sourcepub fn collection_metadata(
&mut self,
collection_metadata: &'b AccountInfo<'a>
) -> &mut Self
pub fn collection_metadata( &mut self, collection_metadata: &'b AccountInfo<'a> ) -> &mut Self
Collection metadata account
sourcepub fn delegate_record(
&mut self,
delegate_record: &'b AccountInfo<'a>
) -> &mut Self
pub fn delegate_record( &mut self, delegate_record: &'b AccountInfo<'a> ) -> &mut Self
Delegate record account
sourcepub fn token_record(&mut self, token_record: &'b AccountInfo<'a>) -> &mut Self
pub fn token_record(&mut self, token_record: &'b AccountInfo<'a>) -> &mut Self
Token record account
sourcepub fn system_program(
&mut self,
system_program: &'b AccountInfo<'a>
) -> &mut Self
pub fn system_program( &mut self, system_program: &'b AccountInfo<'a> ) -> &mut Self
System program
sourcepub fn sysvar_instructions(
&mut self,
sysvar_instructions: &'b AccountInfo<'a>
) -> &mut Self
pub fn sysvar_instructions( &mut self, sysvar_instructions: &'b AccountInfo<'a> ) -> &mut Self
Instruction sysvar account
sourcepub fn spl_token_program(
&mut self,
spl_token_program: &'b AccountInfo<'a>
) -> &mut Self
pub fn spl_token_program( &mut self, spl_token_program: &'b AccountInfo<'a> ) -> &mut Self
SPL Token Program
[optional account]
Token Authorization Rules Program
[optional account]
Token Authorization Rules account
pub fn add_remaining_account( &mut self, account: InstructionAccountInfo<'a, 'b> ) -> &mut Self
pub fn add_remaining_accounts( &mut self, accounts: &[InstructionAccountInfo<'a, 'b>] ) -> &mut Self
pub fn invoke(&self) -> ProgramResult
pub fn invoke_signed(&self, signers_seeds: &[&[&[u8]]]) -> ProgramResult
Auto Trait Implementations§
impl<'a, 'b> !RefUnwindSafe for MigrateCpiBuilder<'a, 'b>
impl<'a, 'b> !Send for MigrateCpiBuilder<'a, 'b>
impl<'a, 'b> !Sync for MigrateCpiBuilder<'a, 'b>
impl<'a, 'b> Unpin for MigrateCpiBuilder<'a, 'b>
impl<'a, 'b> !UnwindSafe for MigrateCpiBuilder<'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