Struct mpl_token_metadata::instructions::CreateV1
source · pub struct CreateV1 {
pub metadata: Pubkey,
pub master_edition: Option<Pubkey>,
pub mint: (Pubkey, bool),
pub authority: Pubkey,
pub payer: Pubkey,
pub update_authority: (Pubkey, bool),
pub system_program: Pubkey,
pub sysvar_instructions: Pubkey,
pub spl_token_program: Pubkey,
}
Expand description
Accounts.
Fields§
§metadata: Pubkey
Unallocated metadata account with address as pda of [‘metadata’, program id, mint id]
master_edition: Option<Pubkey>
Unallocated edition account with address as pda of [‘metadata’, program id, mint, ‘edition’]
mint: (Pubkey, bool)
Mint of token asset
Mint authority
payer: Pubkey
Payer
Update authority for the metadata account
system_program: Pubkey
System program
sysvar_instructions: Pubkey
Instructions sysvar account
spl_token_program: Pubkey
SPL Token program
Implementations§
source§impl CreateV1
impl CreateV1
pub fn instruction(&self, args: CreateV1InstructionArgs) -> Instruction
pub fn instruction_with_remaining_accounts( &self, args: CreateV1InstructionArgs, remaining_accounts: &[AccountMeta] ) -> Instruction
Auto Trait Implementations§
impl RefUnwindSafe for CreateV1
impl Send for CreateV1
impl Sync for CreateV1
impl Unpin for CreateV1
impl UnwindSafe for CreateV1
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