pub struct NftItem {
pub contract_address: String,
pub token_id: String,
pub token_balance: Option<String>,
pub token_url: Option<String>,
pub contract_name: Option<String>,
pub contract_ticker_symbol: Option<String>,
pub supports_erc: Option<Vec<String>>,
pub nft_data: Option<NftMetadata>,
}Expand description
Represents an NFT item returned by the API.
Fields§
§contract_address: StringThe contract address of the NFT collection.
token_id: StringThe token ID within the collection.
token_balance: Option<String>The owner’s balance of this NFT (usually 1 for ERC-721, can be >1 for ERC-1155).
token_url: Option<String>URL for the token metadata.
contract_name: Option<String>Collection name.
contract_ticker_symbol: Option<String>Collection symbol/ticker.
supports_erc: Option<Vec<String>>Whether this is an ERC-721 or ERC-1155 token.
nft_data: Option<NftMetadata>External metadata for the NFT.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for NftItem
impl<'de> Deserialize<'de> for NftItem
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 NftItem
impl RefUnwindSafe for NftItem
impl Send for NftItem
impl Sync for NftItem
impl Unpin for NftItem
impl UnwindSafe for NftItem
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