pub struct TxCreateTokenWithMetadataParams {
pub payer: Pubkey,
pub mint: Pubkey,
pub mint_authority: Pubkey,
pub freeze_authority: Option<Pubkey>,
pub decimals: u8,
pub name: String,
pub symbol: String,
pub image: String,
pub description: String,
pub immutable: bool,
}Expand description
Parameters for tx_create_token_with_metadata transaction pattern.
Fields§
§payer: PubkeyPayer that funds the mint account and metadata PDA
mint: PubkeyMint account public key
Initial mint authority
Optional freeze authority for the mint
decimals: u8Number of decimals for the mint
name: StringMetadata name
symbol: StringMetadata symbol
image: StringMetadata image URI
description: StringMetadata description
immutable: boolWhether metadata should be immutable at creation
Trait Implementations§
Source§impl Clone for TxCreateTokenWithMetadataParams
impl Clone for TxCreateTokenWithMetadataParams
Source§fn clone(&self) -> TxCreateTokenWithMetadataParams
fn clone(&self) -> TxCreateTokenWithMetadataParams
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for TxCreateTokenWithMetadataParams
impl RefUnwindSafe for TxCreateTokenWithMetadataParams
impl Send for TxCreateTokenWithMetadataParams
impl Sync for TxCreateTokenWithMetadataParams
impl Unpin for TxCreateTokenWithMetadataParams
impl UnwindSafe for TxCreateTokenWithMetadataParams
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