Struct mpl_bubblegum::state::metaplex_adapter::MetadataArgs
source · pub struct MetadataArgs {
pub name: String,
pub symbol: String,
pub uri: String,
pub seller_fee_basis_points: u16,
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 token_program_version: TokenProgramVersion,
pub creators: Vec<Creator>,
}
Fields§
§name: String
The name of the asset
symbol: String
The symbol for the asset
uri: String
URI pointing to JSON representing the asset
seller_fee_basis_points: u16
Royalty basis points that goes to creators in secondary sales (0-10000)
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
token_program_version: TokenProgramVersion
§creators: Vec<Creator>
Trait Implementations§
source§impl BorshDeserialize for MetadataArgswhere
String: BorshDeserialize,
u16: BorshDeserialize,
bool: BorshDeserialize,
Option<u8>: BorshDeserialize,
Option<TokenStandard>: BorshDeserialize,
Option<Collection>: BorshDeserialize,
Option<Uses>: BorshDeserialize,
TokenProgramVersion: BorshDeserialize,
Vec<Creator>: BorshDeserialize,
impl BorshDeserialize for MetadataArgswhere String: BorshDeserialize, u16: BorshDeserialize, bool: BorshDeserialize, Option<u8>: BorshDeserialize, Option<TokenStandard>: BorshDeserialize, Option<Collection>: BorshDeserialize, Option<Uses>: BorshDeserialize, TokenProgramVersion: BorshDeserialize, Vec<Creator>: BorshDeserialize,
source§impl BorshSerialize for MetadataArgswhere
String: BorshSerialize,
u16: BorshSerialize,
bool: BorshSerialize,
Option<u8>: BorshSerialize,
Option<TokenStandard>: BorshSerialize,
Option<Collection>: BorshSerialize,
Option<Uses>: BorshSerialize,
TokenProgramVersion: BorshSerialize,
Vec<Creator>: BorshSerialize,
impl BorshSerialize for MetadataArgswhere String: BorshSerialize, u16: BorshSerialize, bool: BorshSerialize, Option<u8>: BorshSerialize, Option<TokenStandard>: BorshSerialize, Option<Collection>: BorshSerialize, Option<Uses>: BorshSerialize, TokenProgramVersion: BorshSerialize, Vec<Creator>: BorshSerialize,
source§impl Clone for MetadataArgs
impl Clone for MetadataArgs
source§fn clone(&self) -> MetadataArgs
fn clone(&self) -> MetadataArgs
Returns a copy 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 moresource§impl Debug for MetadataArgs
impl Debug for MetadataArgs
source§impl PartialEq<MetadataArgs> for MetadataArgs
impl PartialEq<MetadataArgs> for MetadataArgs
source§fn eq(&self, other: &MetadataArgs) -> bool
fn eq(&self, other: &MetadataArgs) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.