Struct mpl_token_metadata::instructions::MigrateBuilder
source · pub struct MigrateBuilder { /* private fields */ }
Expand description
Instruction builder.
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
pub fn add_remaining_account( &mut self, account: InstructionAccount ) -> &mut Self
pub fn add_remaining_accounts( &mut self, accounts: &[InstructionAccount] ) -> &mut Self
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