pub struct NftMetadata {
pub token_id: String,
pub name: Option<String>,
pub description: Option<String>,
pub image_url: Option<String>,
pub token_uri: Option<String>,
pub standard: String,
pub collection_name: Option<String>,
pub attributes: Vec<NftAttribute>,
}Expand description
NFT token metadata.
Fields§
§token_id: StringToken ID.
name: Option<String>NFT name.
description: Option<String>NFT description.
image_url: Option<String>Image URL.
token_uri: Option<String>Token URI (metadata JSON location).
standard: StringToken standard (ERC-721 or ERC-1155).
collection_name: Option<String>Collection/contract name.
attributes: Vec<NftAttribute>Additional attributes.
Trait Implementations§
Source§impl Clone for NftMetadata
impl Clone for NftMetadata
Source§impl Debug for NftMetadata
impl Debug for NftMetadata
Source§impl<'de> Deserialize<'de> for NftMetadata
impl<'de> Deserialize<'de> for NftMetadata
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for NftMetadata
impl RefUnwindSafe for NftMetadata
impl Send for NftMetadata
impl Sync for NftMetadata
impl Unpin for NftMetadata
impl UnsafeUnpin for NftMetadata
impl UnwindSafe for NftMetadata
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