pub struct CreateMetadataAccountV3Cpi<'a, 'b> {
pub __program: &'b AccountInfo<'a>,
pub metadata: &'b AccountInfo<'a>,
pub mint: &'b AccountInfo<'a>,
pub mint_authority: &'b AccountInfo<'a>,
pub payer: &'b AccountInfo<'a>,
pub update_authority: (&'b AccountInfo<'a>, bool),
pub system_program: &'b AccountInfo<'a>,
pub rent: Option<&'b AccountInfo<'a>>,
pub __args: CreateMetadataAccountV3InstructionArgs,
}
Expand description
create_metadata_account_v3
CPI instruction.
Fields§
§__program: &'b AccountInfo<'a>
The program to invoke.
metadata: &'b AccountInfo<'a>
Metadata key (pda of [‘metadata’, program id, mint id])
mint: &'b AccountInfo<'a>
Mint of token asset
Mint authority
payer: &'b AccountInfo<'a>
payer
update authority info
system_program: &'b AccountInfo<'a>
System program
rent: Option<&'b AccountInfo<'a>>
Rent info
__args: CreateMetadataAccountV3InstructionArgs
The arguments for the instruction.
Implementations§
source§impl<'a, 'b> CreateMetadataAccountV3Cpi<'a, 'b>
impl<'a, 'b> CreateMetadataAccountV3Cpi<'a, 'b>
pub fn new( program: &'b AccountInfo<'a>, accounts: CreateMetadataAccountV3CpiAccounts<'a, 'b>, args: CreateMetadataAccountV3InstructionArgs ) -> 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 CreateMetadataAccountV3Cpi<'a, 'b>
impl<'a, 'b> !Send for CreateMetadataAccountV3Cpi<'a, 'b>
impl<'a, 'b> !Sync for CreateMetadataAccountV3Cpi<'a, 'b>
impl<'a, 'b> Unpin for CreateMetadataAccountV3Cpi<'a, 'b>
impl<'a, 'b> !UnwindSafe for CreateMetadataAccountV3Cpi<'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