pub struct Nft {
pub token: Token,
pub amount: String,
pub update_date: String,
pub nft_token_id: Option<String>,
pub metadata: Option<NftMetadata>,
}Expand description
An NFT held by a wallet.
Fields§
§token: TokenToken descriptor for this NFT collection.
amount: StringQuantity held (usually “1” for ERC-721).
update_date: StringISO 8601 last-updated timestamp.
nft_token_id: Option<String>On-chain token ID within the collection.
metadata: Option<NftMetadata>Off-chain metadata (name, description, image).
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Nft
impl<'de> Deserialize<'de> for Nft
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 Nft
impl RefUnwindSafe for Nft
impl Send for Nft
impl Sync for Nft
impl Unpin for Nft
impl UnsafeUnpin for Nft
impl UnwindSafe for Nft
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