Struct mpl_token_metadata::instructions::Create
source · pub struct Create {
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 Create
impl Create
pub fn instruction(&self, args: CreateInstructionArgs) -> Instruction
pub fn instruction_with_remaining_accounts( &self, args: CreateInstructionArgs, remaining_accounts: &[AccountMeta] ) -> Instruction
Auto Trait Implementations§
impl RefUnwindSafe for Create
impl Send for Create
impl Sync for Create
impl Unpin for Create
impl UnwindSafe for Create
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