pub struct NftMetadata {
pub edition_number: Option<u64>,
pub edition_total: Option<u64>,
pub data_uris: Vec<String>,
pub data_hash: Option<HexId>,
pub metadata_uris: Vec<String>,
pub metadata_hash: Option<HexId>,
pub license_uris: Vec<String>,
pub license_hash: Option<HexId>,
}Expand description
CHIP-0007 NFT metadata for one collection item.
Fields§
§edition_number: Option<u64>Edition ordinal, if any.
edition_total: Option<u64>Edition total, if any.
data_uris: Vec<String>Data URIs.
data_hash: Option<HexId>SHA-256 of the data (64-hex), if any.
metadata_uris: Vec<String>Metadata URIs.
metadata_hash: Option<HexId>SHA-256 of the metadata document (64-hex), if any.
license_uris: Vec<String>License URIs.
license_hash: Option<HexId>SHA-256 of the license (64-hex), if any.
Trait Implementations§
Source§impl Clone for NftMetadata
impl Clone for NftMetadata
Source§fn clone(&self) -> NftMetadata
fn clone(&self) -> NftMetadata
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 NftMetadata
impl Debug for NftMetadata
Source§impl Default for NftMetadata
impl Default for NftMetadata
Source§fn default() -> NftMetadata
fn default() -> NftMetadata
Returns the “default value” for a type. Read more
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
Source§impl PartialEq for NftMetadata
impl PartialEq for NftMetadata
Source§impl Serialize for NftMetadata
impl Serialize for NftMetadata
impl StructuralPartialEq for NftMetadata
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