Struct mpl_token_metadata::instruction::builders::Mint
source · 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
§delegate_record: Option<Pubkey>
§payer: Pubkey
§system_program: Pubkey
§sysvar_instructions: Pubkey
§spl_token_program: Pubkey
§spl_ata_program: Pubkey
§args: MintArgs
Trait Implementations§
source§impl InstructionBuilder for Mint
impl InstructionBuilder for Mint
Builds the instruction to mint a token.
Accounts:
[writable]
Token account key[optional]
Owner of the token account[]
Metadata account key (pda of [‘metadata’, program id, mint id])“)][optional]
Master Edition account[optional]
Token record account[writable]
Mint of token asset[signer]
Authority (mint authority or metadata’s update authority for NonFungible asests)[optional]
Metadata delegate record[signer, writable]
Payer[]
System program[]
Instructions sysvar account[]
SPL Token program[]
SPL Associated Token Account program[optional]
Token Authorization Rules program[optional]
Token Authorization Rules account
fn instruction(&self) -> Instruction
Auto Trait Implementations§
impl RefUnwindSafe for Mint
impl Send for Mint
impl Sync for Mint
impl Unpin for Mint
impl UnwindSafe for Mint
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