pub trait ERC721Metadata: ERC721 {
// Required methods
fn name(&self) -> Result<String>;
fn symbol(&self) -> Result<String>;
fn token_uri(&self, token_id: U256) -> Result<String>;
}Expand description
The metadata extension is OPTIONAL for ERC-721 smart contracts. This allows your smart contract to be interrogated for its name and for details about the assets which your NFTs represent.
@title ERC-721 Non-Fungible Token Standard, optional metadata extension @dev See https://eips.ethereum.org/EIPS/eip-721 Note: the ERC-165 identifier for this interface is 0x5b5e139f.