Struct nft_server::NftMetadata
source · [−]pub struct NftMetadata {
pub name: String,
pub description: String,
pub external_url: Url,
pub image: NftImage,
pub attributes: Vec<OpenSeaAttribute>,
pub background_color: Option<String>,
pub animation_url: Option<Url>,
pub youtube_url: Option<Url>,
}Expand description
Top-level NFT Metadata supporting basic ERC-721 schema, with OpenSea extensions.
Fields
name: StringThe NFT name
description: StringThe NFT description
external_url: UrlAn external URL related to the NFT
image: NftImageThe NFT image link or data
attributes: Vec<OpenSeaAttribute>NFT Attributes, in the OpenSea format
background_color: Option<String>The background color to be displayed on OpenSea
animation_url: Option<Url>The animation URL to be displayed on OpenSea
youtube_url: Option<Url>The Youtube link to be displayed on OpenSea
Trait Implementations
sourceimpl Clone for NftMetadata
impl Clone for NftMetadata
sourcefn clone(&self) -> NftMetadata
fn clone(&self) -> NftMetadata
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moresourceimpl Debug for NftMetadata
impl Debug for NftMetadata
sourceimpl<'de> Deserialize<'de> for NftMetadata
impl<'de> Deserialize<'de> for NftMetadata
sourcefn 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
sourceimpl Serialize for NftMetadata
impl Serialize for NftMetadata
Auto Trait Implementations
impl RefUnwindSafe for NftMetadata
impl Send for NftMetadata
impl Sync for NftMetadata
impl Unpin for NftMetadata
impl UnwindSafe for NftMetadata
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more