pub struct BurnNftCpiBuilder<'a, 'b> { /* private fields */ }
Expand description
burn_nft
CPI instruction builder.
Implementations§
source§impl<'a, 'b> BurnNftCpiBuilder<'a, 'b>
impl<'a, 'b> BurnNftCpiBuilder<'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 (pda of [‘metadata’, program id, mint id])
sourcepub fn owner(&mut self, owner: &'b AccountInfo<'a>) -> &mut Self
pub fn owner(&mut self, owner: &'b AccountInfo<'a>) -> &mut Self
NFT owner
sourcepub fn mint(&mut self, mint: &'b AccountInfo<'a>) -> &mut Self
pub fn mint(&mut self, mint: &'b AccountInfo<'a>) -> &mut Self
Mint of the NFT
sourcepub fn token_account(&mut self, token_account: &'b AccountInfo<'a>) -> &mut Self
pub fn token_account(&mut self, token_account: &'b AccountInfo<'a>) -> &mut Self
Token account to close
sourcepub fn master_edition_account(
&mut self,
master_edition_account: &'b AccountInfo<'a>
) -> &mut Self
pub fn master_edition_account( &mut self, master_edition_account: &'b AccountInfo<'a> ) -> &mut Self
MasterEdition2 of the NFT
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
sourcepub fn collection_metadata(
&mut self,
collection_metadata: Option<&'b AccountInfo<'a>>
) -> &mut Self
pub fn collection_metadata( &mut self, collection_metadata: Option<&'b AccountInfo<'a>> ) -> &mut Self
[optional account]
Metadata of the Collection
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 BurnNftCpiBuilder<'a, 'b>
impl<'a, 'b> !Send for BurnNftCpiBuilder<'a, 'b>
impl<'a, 'b> !Sync for BurnNftCpiBuilder<'a, 'b>
impl<'a, 'b> Unpin for BurnNftCpiBuilder<'a, 'b>
impl<'a, 'b> !UnwindSafe for BurnNftCpiBuilder<'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