Struct mpl_token_metadata::instructions::UtilizeCpi
source · pub struct UtilizeCpi<'a, 'b> {Show 13 fields
pub __program: &'b AccountInfo<'a>,
pub metadata: &'b AccountInfo<'a>,
pub token_account: &'b AccountInfo<'a>,
pub mint: &'b AccountInfo<'a>,
pub use_authority: &'b AccountInfo<'a>,
pub owner: &'b AccountInfo<'a>,
pub token_program: &'b AccountInfo<'a>,
pub ata_program: &'b AccountInfo<'a>,
pub system_program: &'b AccountInfo<'a>,
pub rent: &'b AccountInfo<'a>,
pub use_authority_record: Option<&'b AccountInfo<'a>>,
pub burner: Option<&'b AccountInfo<'a>>,
pub __args: UtilizeInstructionArgs,
}
Expand description
utilize
CPI instruction.
Fields§
§__program: &'b AccountInfo<'a>
The program to invoke.
metadata: &'b AccountInfo<'a>
Metadata account
token_account: &'b AccountInfo<'a>
Token Account Of NFT
mint: &'b AccountInfo<'a>
Mint of the Metadata
A Use Authority / Can be the current Owner of the NFT
owner: &'b AccountInfo<'a>
Owner
token_program: &'b AccountInfo<'a>
Token program
ata_program: &'b AccountInfo<'a>
Associated Token program
system_program: &'b AccountInfo<'a>
System program
rent: &'b AccountInfo<'a>
Rent info
Use Authority Record PDA If present the program Assumes a delegated use authority
burner: Option<&'b AccountInfo<'a>>
Program As Signer (Burner)
__args: UtilizeInstructionArgs
The arguments for the instruction.
Implementations§
source§impl<'a, 'b> UtilizeCpi<'a, 'b>
impl<'a, 'b> UtilizeCpi<'a, 'b>
pub fn new( program: &'b AccountInfo<'a>, accounts: UtilizeCpiAccounts<'a, 'b>, args: UtilizeInstructionArgs ) -> 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 UtilizeCpi<'a, 'b>
impl<'a, 'b> !Send for UtilizeCpi<'a, 'b>
impl<'a, 'b> !Sync for UtilizeCpi<'a, 'b>
impl<'a, 'b> Unpin for UtilizeCpi<'a, 'b>
impl<'a, 'b> !UnwindSafe for UtilizeCpi<'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