pub struct CreateMetadataAccountV3CpiBuilder<'a, 'b> { /* private fields */ }
Expand description
create_metadata_account_v3
CPI instruction builder.
Implementations§
source§impl<'a, 'b> CreateMetadataAccountV3CpiBuilder<'a, 'b>
impl<'a, 'b> CreateMetadataAccountV3CpiBuilder<'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 key (pda of [‘metadata’, program id, mint id])
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
Mint authority
sourcepub fn payer(&mut self, payer: &'b AccountInfo<'a>) -> &mut Self
pub fn payer(&mut self, payer: &'b AccountInfo<'a>) -> &mut Self
payer
update authority info
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 rent(&mut self, rent: Option<&'b AccountInfo<'a>>) -> &mut Self
pub fn rent(&mut self, rent: Option<&'b AccountInfo<'a>>) -> &mut Self
[optional account]
Rent info
pub fn data(&mut self, data: DataV2) -> &mut Self
pub fn is_mutable(&mut self, is_mutable: bool) -> &mut Self
sourcepub fn collection_details(
&mut self,
collection_details: CollectionDetails
) -> &mut Self
pub fn collection_details( &mut self, collection_details: CollectionDetails ) -> &mut Self
[optional argument]
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 CreateMetadataAccountV3CpiBuilder<'a, 'b>
impl<'a, 'b> !Send for CreateMetadataAccountV3CpiBuilder<'a, 'b>
impl<'a, 'b> !Sync for CreateMetadataAccountV3CpiBuilder<'a, 'b>
impl<'a, 'b> Unpin for CreateMetadataAccountV3CpiBuilder<'a, 'b>
impl<'a, 'b> !UnwindSafe for CreateMetadataAccountV3CpiBuilder<'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