Struct mpl_token_metadata::instructions::BurnV1CpiBuilder
source · pub struct BurnV1CpiBuilder<'a, 'b> { /* private fields */ }
Expand description
burn_v1
CPI instruction builder.
Implementations§
source§impl<'a, 'b> BurnV1CpiBuilder<'a, 'b>
impl<'a, 'b> BurnV1CpiBuilder<'a, 'b>
pub fn new(program: &'b AccountInfo<'a>) -> Self
Asset owner or Utility delegate
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
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 edition(&mut self, edition: Option<&'b AccountInfo<'a>>) -> &mut Self
pub fn edition(&mut self, edition: Option<&'b AccountInfo<'a>>) -> &mut Self
[optional account]
Edition of the asset
sourcepub fn mint(&mut self, mint: &'b AccountInfo<'a>) -> &mut Self
pub fn mint(&mut self, mint: &'b AccountInfo<'a>) -> &mut Self
Mint of token asset
sourcepub fn token(&mut self, token: &'b AccountInfo<'a>) -> &mut Self
pub fn token(&mut self, token: &'b AccountInfo<'a>) -> &mut Self
Token account to close
sourcepub fn master_edition(
&mut self,
master_edition: Option<&'b AccountInfo<'a>>
) -> &mut Self
pub fn master_edition( &mut self, master_edition: Option<&'b AccountInfo<'a>> ) -> &mut Self
[optional account]
Master edition account
sourcepub fn master_edition_mint(
&mut self,
master_edition_mint: Option<&'b AccountInfo<'a>>
) -> &mut Self
pub fn master_edition_mint( &mut self, master_edition_mint: Option<&'b AccountInfo<'a>> ) -> &mut Self
[optional account]
Master edition mint of the asset
sourcepub fn master_edition_token(
&mut self,
master_edition_token: Option<&'b AccountInfo<'a>>
) -> &mut Self
pub fn master_edition_token( &mut self, master_edition_token: Option<&'b AccountInfo<'a>> ) -> &mut Self
[optional account]
Master edition token account
sourcepub fn edition_marker(
&mut self,
edition_marker: Option<&'b AccountInfo<'a>>
) -> &mut Self
pub fn edition_marker( &mut self, edition_marker: Option<&'b AccountInfo<'a>> ) -> &mut Self
[optional account]
Edition marker account
sourcepub fn token_record(
&mut self,
token_record: Option<&'b AccountInfo<'a>>
) -> &mut Self
pub fn token_record( &mut self, token_record: Option<&'b AccountInfo<'a>> ) -> &mut Self
[optional account]
Token record account
sourcepub fn system_program(
&mut self,
system_program: &'b AccountInfo<'a>
) -> &mut Self
pub fn system_program( &mut self, system_program: &'b AccountInfo<'a> ) -> &mut Self
System program
sourcepub fn sysvar_instructions(
&mut self,
sysvar_instructions: &'b AccountInfo<'a>
) -> &mut Self
pub fn sysvar_instructions( &mut self, sysvar_instructions: &'b AccountInfo<'a> ) -> &mut Self
Instructions sysvar account
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
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 BurnV1CpiBuilder<'a, 'b>
impl<'a, 'b> !Send for BurnV1CpiBuilder<'a, 'b>
impl<'a, 'b> !Sync for BurnV1CpiBuilder<'a, 'b>
impl<'a, 'b> Unpin for BurnV1CpiBuilder<'a, 'b>
impl<'a, 'b> !UnwindSafe for BurnV1CpiBuilder<'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