Expand description

Type definitions for ERC-based non-fungible token (NFT) metadata.

While EIP-721 defines a “ERC-721 Metadata JSON Schema”, in practice it is rarely used. Instead, this crate implements the more popular OpenSea metadata standard.

This crate does not attempt to perform validation more than what is strictly necessary. Since every secondary market will use the fields in the metadata in a different way, it is up to the crate consumer to make sure the fields are appropriately populated.

Structs

Metadata for a token.

Enums

A key-value pair of attributes for an item.

How a numerical attribute should be displayed.