pub struct Mint {
Show 16 fields pub token: Pubkey, pub token_owner: Option<Pubkey>, pub metadata: Pubkey, pub master_edition: Option<Pubkey>, pub token_record: Option<Pubkey>, pub mint: Pubkey, pub authority: Pubkey, pub delegate_record: Option<Pubkey>, pub payer: Pubkey, pub system_program: Pubkey, pub sysvar_instructions: Pubkey, pub spl_token_program: Pubkey, pub spl_ata_program: Pubkey, pub authorization_rules_program: Option<Pubkey>, pub authorization_rules: Option<Pubkey>, pub args: MintArgs,
}

Fields§

§token: Pubkey§token_owner: Option<Pubkey>§metadata: Pubkey§master_edition: Option<Pubkey>§token_record: Option<Pubkey>§mint: Pubkey§authority: Pubkey§delegate_record: Option<Pubkey>§payer: Pubkey§system_program: Pubkey§sysvar_instructions: Pubkey§spl_token_program: Pubkey§spl_ata_program: Pubkey§authorization_rules_program: Option<Pubkey>§authorization_rules: Option<Pubkey>§args: MintArgs

Trait Implementations§

Builds the instruction to mint a token.

Accounts:

  1. [writable] Token account key
  2. [optional] Owner of the token account
  3. [] Metadata account key (pda of [‘metadata’, program id, mint id])“)]
  4. [optional] Master Edition account
  5. [writable] Mint of token asset
  6. [signer] Authority (mint authority or metadata’s update authority for NonFungible asests)
  7. [signer, writable] Payer
  8. [] System program
  9. [] Instructions sysvar account
  10. [] SPL Token program
  11. [] SPL Associated Token Account program
  12. [optional] Token Authorization Rules program
  13. [optional] Token Authorization Rules account

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.