pub struct Create {
    pub metadata: Pubkey,
    pub master_edition: Option<Pubkey>,
    pub mint: Pubkey,
    pub authority: Pubkey,
    pub payer: Pubkey,
    pub update_authority: Pubkey,
    pub system_program: Pubkey,
    pub sysvar_instructions: Pubkey,
    pub spl_token_program: Pubkey,
    pub initialize_mint: bool,
    pub update_authority_as_signer: bool,
    pub args: CreateArgs,
}

Fields§

§metadata: Pubkey§master_edition: Option<Pubkey>§mint: Pubkey§authority: Pubkey§payer: Pubkey§update_authority: Pubkey§system_program: Pubkey§sysvar_instructions: Pubkey§spl_token_program: Pubkey§initialize_mint: bool§update_authority_as_signer: bool§args: CreateArgs

Trait Implementations§

Builds the instruction to create metadata and associated accounts.

Accounts:

  1. [writable] Metadata account
  2. [optional, writable] Master edition account
  3. [writable] Mint account
  4. [signer] Mint authority
  5. [signer] Payer
  6. [signer] Update authority
  7. [] System program
  8. [] Instructions sysvar account
  9. [] SPL Token program

Auto Trait Implementations§

Blanket Implementations§

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The alignment of pointer.
The type for initializers.
Initializes a with the given initializer. Read more
Dereferences the given pointer. Read more
Mutably dereferences the given pointer. Read more
Drops the object pointed to by the given pointer. Read more
Should always be Self
The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.