Struct mpl_token_metadata::instructions::BurnNftCpi
source · pub struct BurnNftCpi<'a, 'b> {
pub __program: &'b AccountInfo<'a>,
pub metadata: &'b AccountInfo<'a>,
pub owner: &'b AccountInfo<'a>,
pub mint: &'b AccountInfo<'a>,
pub token_account: &'b AccountInfo<'a>,
pub master_edition_account: &'b AccountInfo<'a>,
pub spl_token_program: &'b AccountInfo<'a>,
pub collection_metadata: Option<&'b AccountInfo<'a>>,
}
Expand description
burn_nft
CPI instruction.
Fields§
§__program: &'b AccountInfo<'a>
The program to invoke.
metadata: &'b AccountInfo<'a>
Metadata (pda of [‘metadata’, program id, mint id])
owner: &'b AccountInfo<'a>
NFT owner
mint: &'b AccountInfo<'a>
Mint of the NFT
token_account: &'b AccountInfo<'a>
Token account to close
master_edition_account: &'b AccountInfo<'a>
MasterEdition2 of the NFT
spl_token_program: &'b AccountInfo<'a>
SPL Token Program
collection_metadata: Option<&'b AccountInfo<'a>>
Metadata of the Collection
Implementations§
source§impl<'a, 'b> BurnNftCpi<'a, 'b>
impl<'a, 'b> BurnNftCpi<'a, 'b>
pub fn new( program: &'b AccountInfo<'a>, accounts: BurnNftCpiAccounts<'a, 'b> ) -> Self
pub fn invoke(&self) -> ProgramResult
pub fn invoke_with_remaining_accounts( &self, remaining_accounts: &[(&'b AccountInfo<'a>, bool, bool)] ) -> ProgramResult
pub fn invoke_signed(&self, signers_seeds: &[&[&[u8]]]) -> ProgramResult
pub fn invoke_signed_with_remaining_accounts( &self, signers_seeds: &[&[&[u8]]], remaining_accounts: &[(&'b AccountInfo<'a>, bool, bool)] ) -> ProgramResult
Auto Trait Implementations§
impl<'a, 'b> !RefUnwindSafe for BurnNftCpi<'a, 'b>
impl<'a, 'b> !Send for BurnNftCpi<'a, 'b>
impl<'a, 'b> !Sync for BurnNftCpi<'a, 'b>
impl<'a, 'b> Unpin for BurnNftCpi<'a, 'b>
impl<'a, 'b> !UnwindSafe for BurnNftCpi<'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