#[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: StringThe name of the asset.
symbol: StringThe symbol for the asset.
uri: StringURI pointing to JSON representing the asset.
seller_fee_basis_points: u16Royalty 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: TokenStandardType 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 AssetData
impl BorshSerialize for AssetData
impl Eq for AssetData
impl StructuralPartialEq for AssetData
Auto Trait Implementations§
impl Freeze for AssetData
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more