pub struct CreateMetadataParams {
pub payer: Pubkey,
pub mint: Pubkey,
pub mint_or_freeze_authority: Pubkey,
pub name: String,
pub symbol: String,
pub image: String,
pub description: String,
pub immutable: bool,
}Expand description
Parameters for CreateMetadata instruction.
Fields§
§payer: PubkeyAccount that pays for the metadata PDA creation
mint: PubkeyToken mint the metadata is associated with
Signer that must match the mint authority, or the freeze authority if mint authority is None
name: StringToken name (<= NAME_MAX_LEN)
symbol: StringToken symbol (<= SYMBOL_MAX_LEN)
image: StringImage URI (<= IMAGE_MAX_LEN)
description: StringDescription text (<= DESCRIPTION_MAX_LEN)
immutable: boolIf true, metadata is immutable (no update authority retained)
Trait Implementations§
Source§impl Clone for CreateMetadataParams
impl Clone for CreateMetadataParams
Source§fn clone(&self) -> CreateMetadataParams
fn clone(&self) -> CreateMetadataParams
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 CreateMetadataParams
impl RefUnwindSafe for CreateMetadataParams
impl Send for CreateMetadataParams
impl Sync for CreateMetadataParams
impl Unpin for CreateMetadataParams
impl UnwindSafe for CreateMetadataParams
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