pub struct TxCreateTokenWithMetadataAndAttributesParams {
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,
pub attributes: Vec<(String, String)>,
}Expand description
Parameters for tx_create_token_with_metadata_and_attributes transaction pattern.
Fields§
§payer: PubkeyPayer that funds the mint account and PDAs
mint: PubkeyMint account public key
Initial mint authority (and update authority for metadata/attributes)
Optional freeze authority for the mint
decimals: u8Number of decimals for the mint
name: StringMetadata fields
symbol: String§image: String§description: String§immutable: bool§attributes: Vec<(String, String)>Initial attributes to set
Trait Implementations§
Source§impl Clone for TxCreateTokenWithMetadataAndAttributesParams
impl Clone for TxCreateTokenWithMetadataAndAttributesParams
Source§fn clone(&self) -> TxCreateTokenWithMetadataAndAttributesParams
fn clone(&self) -> TxCreateTokenWithMetadataAndAttributesParams
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 TxCreateTokenWithMetadataAndAttributesParams
impl RefUnwindSafe for TxCreateTokenWithMetadataAndAttributesParams
impl Send for TxCreateTokenWithMetadataAndAttributesParams
impl Sync for TxCreateTokenWithMetadataAndAttributesParams
impl Unpin for TxCreateTokenWithMetadataAndAttributesParams
impl UnwindSafe for TxCreateTokenWithMetadataAndAttributesParams
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