Struct mpl_token_metadata::instructions::MigrateBuilder
source · pub struct MigrateBuilder { /* private fields */ }
Expand description
Instruction builder for Migrate
.
Accounts:
[writable]
metadata[writable]
edition[writable]
token[]
token_owner[]
mint[writable, signer]
payer[signer]
authority[]
collection_metadata[]
delegate_record[writable]
token_record[optional]
system_program (default to11111111111111111111111111111111
)[optional]
sysvar_instructions (default toSysvar1nstructions1111111111111111111111111
)[optional]
spl_token_program (default toTokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA
)[optional]
authorization_rules_program[optional]
authorization_rules
Implementations§
source§impl MigrateBuilder
impl MigrateBuilder
pub fn new() -> Self
sourcepub fn token_owner(&mut self, token_owner: Pubkey) -> &mut Self
pub fn token_owner(&mut self, token_owner: Pubkey) -> &mut Self
Token account owner
Update authority
sourcepub fn collection_metadata(&mut self, collection_metadata: Pubkey) -> &mut Self
pub fn collection_metadata(&mut self, collection_metadata: Pubkey) -> &mut Self
Collection metadata account
sourcepub fn delegate_record(&mut self, delegate_record: Pubkey) -> &mut Self
pub fn delegate_record(&mut self, delegate_record: Pubkey) -> &mut Self
Delegate record account
sourcepub fn token_record(&mut self, token_record: Pubkey) -> &mut Self
pub fn token_record(&mut self, token_record: Pubkey) -> &mut Self
Token record account
sourcepub fn system_program(&mut self, system_program: Pubkey) -> &mut Self
pub fn system_program(&mut self, system_program: Pubkey) -> &mut Self
[optional account, default to '11111111111111111111111111111111']
System program
sourcepub fn sysvar_instructions(&mut self, sysvar_instructions: Pubkey) -> &mut Self
pub fn sysvar_instructions(&mut self, sysvar_instructions: Pubkey) -> &mut Self
[optional account, default to 'Sysvar1nstructions1111111111111111111111111']
Instruction sysvar account
sourcepub fn spl_token_program(&mut self, spl_token_program: Pubkey) -> &mut Self
pub fn spl_token_program(&mut self, spl_token_program: Pubkey) -> &mut Self
[optional account, default to 'TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA']
SPL Token Program
[optional account]
Token Authorization Rules Program
[optional account]
Token Authorization Rules account
sourcepub fn add_remaining_account(&mut self, account: AccountMeta) -> &mut Self
pub fn add_remaining_account(&mut self, account: AccountMeta) -> &mut Self
Add an aditional account to the instruction.
sourcepub fn add_remaining_accounts(&mut self, accounts: &[AccountMeta]) -> &mut Self
pub fn add_remaining_accounts(&mut self, accounts: &[AccountMeta]) -> &mut Self
Add additional accounts to the instruction.
pub fn instruction(&self) -> Instruction
Trait Implementations§
source§impl Default for MigrateBuilder
impl Default for MigrateBuilder
source§fn default() -> MigrateBuilder
fn default() -> MigrateBuilder
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl RefUnwindSafe for MigrateBuilder
impl Send for MigrateBuilder
impl Sync for MigrateBuilder
impl Unpin for MigrateBuilder
impl UnwindSafe for MigrateBuilder
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