Struct mpl_token_metadata::state::AssetData
source · #[repr(C)]pub struct AssetData {
pub name: String,
pub symbol: String,
pub uri: String,
pub seller_fee_basis_points: u16,
pub creators: Option<Vec<Creator>>,
pub primary_sale_happened: bool,
pub is_mutable: bool,
pub token_standard: TokenStandard,
pub collection: Option<Collection>,
pub uses: Option<Uses>,
pub collection_details: Option<CollectionDetails>,
pub rule_set: Option<Pubkey>,
}
Expand description
Data representation of an asset.
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).
creators: Option<Vec<Creator>>
Array of creators.
primary_sale_happened: bool
§is_mutable: bool
§token_standard: TokenStandard
Type of the token.
collection: Option<Collection>
Collection information.
uses: Option<Uses>
Uses information.
collection_details: Option<CollectionDetails>
Collection item details.
rule_set: Option<Pubkey>
Programmable rule set for the asset.
Implementations§
Trait Implementations§
source§impl BorshDeserialize for AssetDatawhere
String: BorshDeserialize,
u16: BorshDeserialize,
Option<Vec<Creator>>: BorshDeserialize,
bool: BorshDeserialize,
TokenStandard: BorshDeserialize,
Option<Collection>: BorshDeserialize,
Option<Uses>: BorshDeserialize,
Option<CollectionDetails>: BorshDeserialize,
Option<Pubkey>: BorshDeserialize,
impl BorshDeserialize for AssetDatawhere String: BorshDeserialize, u16: BorshDeserialize, Option<Vec<Creator>>: BorshDeserialize, bool: BorshDeserialize, TokenStandard: BorshDeserialize, Option<Collection>: BorshDeserialize, Option<Uses>: BorshDeserialize, Option<CollectionDetails>: BorshDeserialize, Option<Pubkey>: BorshDeserialize,
source§impl BorshSerialize for AssetDatawhere
String: BorshSerialize,
u16: BorshSerialize,
Option<Vec<Creator>>: BorshSerialize,
bool: BorshSerialize,
TokenStandard: BorshSerialize,
Option<Collection>: BorshSerialize,
Option<Uses>: BorshSerialize,
Option<CollectionDetails>: BorshSerialize,
Option<Pubkey>: BorshSerialize,
impl BorshSerialize for AssetDatawhere String: BorshSerialize, u16: BorshSerialize, Option<Vec<Creator>>: BorshSerialize, bool: BorshSerialize, TokenStandard: BorshSerialize, Option<Collection>: BorshSerialize, Option<Uses>: BorshSerialize, Option<CollectionDetails>: BorshSerialize, Option<Pubkey>: BorshSerialize,
source§impl PartialEq<AssetData> for AssetData
impl PartialEq<AssetData> for AssetData
impl Eq for AssetData
impl StructuralEq for AssetData
impl StructuralPartialEq for AssetData
Auto Trait Implementations§
impl RefUnwindSafe for AssetData
impl Send for AssetData
impl Sync for AssetData
impl Unpin for AssetData
impl UnwindSafe for AssetData
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