Struct mpl_token_metadata::instructions::BurnNftBuilder
source · pub struct BurnNftBuilder { /* private fields */ }
Expand description
Instruction builder for BurnNft
.
Accounts:
[writable]
metadata[writable, signer]
owner[writable]
mint[writable]
token_account[writable]
master_edition_account[optional]
spl_token_program (default toTokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA
)[writable, optional]
collection_metadata
Implementations§
source§impl BurnNftBuilder
impl BurnNftBuilder
pub fn new() -> Self
sourcepub fn metadata(&mut self, metadata: Pubkey) -> &mut Self
pub fn metadata(&mut self, metadata: Pubkey) -> &mut Self
Metadata (pda of [‘metadata’, program id, mint id])
sourcepub fn token_account(&mut self, token_account: Pubkey) -> &mut Self
pub fn token_account(&mut self, token_account: Pubkey) -> &mut Self
Token account to close
sourcepub fn master_edition_account(
&mut self,
master_edition_account: Pubkey
) -> &mut Self
pub fn master_edition_account( &mut self, master_edition_account: Pubkey ) -> &mut Self
MasterEdition2 of the NFT
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
sourcepub fn collection_metadata(
&mut self,
collection_metadata: Option<Pubkey>
) -> &mut Self
pub fn collection_metadata( &mut self, collection_metadata: Option<Pubkey> ) -> &mut Self
[optional account]
Metadata of the Collection
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 BurnNftBuilder
impl Default for BurnNftBuilder
source§fn default() -> BurnNftBuilder
fn default() -> BurnNftBuilder
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl RefUnwindSafe for BurnNftBuilder
impl Send for BurnNftBuilder
impl Sync for BurnNftBuilder
impl Unpin for BurnNftBuilder
impl UnwindSafe for BurnNftBuilder
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