Struct mpl_token_metadata::state::Metadata
source · #[repr(C)]pub struct Metadata {
pub key: Key,
pub update_authority: Pubkey,
pub mint: Pubkey,
pub data: Data,
pub primary_sale_happened: bool,
pub is_mutable: bool,
pub edition_nonce: Option<u8>,
pub token_standard: Option<TokenStandard>,
pub collection: Option<Collection>,
pub uses: Option<Uses>,
pub collection_details: Option<CollectionDetails>,
pub programmable_config: Option<ProgrammableConfig>,
}
Fields§
§key: Key
Account discriminator.
Address of the update authority.
mint: Pubkey
Address of the mint.
data: Data
Asset data.
primary_sale_happened: bool
§is_mutable: bool
§edition_nonce: Option<u8>
nonce for easy calculation of editions, if present
token_standard: Option<TokenStandard>
Since we cannot easily change Metadata, we add the new DataV2 fields here at the end.
collection: Option<Collection>
Collection
uses: Option<Uses>
Uses
collection_details: Option<CollectionDetails>
Collection Details
programmable_config: Option<ProgrammableConfig>
Programmable Config
Implementations§
Trait Implementations§
source§impl BorshDeserialize for Metadata
impl BorshDeserialize for Metadata
source§fn deserialize(buf: &mut &[u8]) -> Result<Self, BorshError>
fn deserialize(buf: &mut &[u8]) -> Result<Self, BorshError>
Deserializes this instance from a given slice of bytes.
Updates the buffer to point at the remaining bytes.