pub struct WalletStats {
pub address: Option<String>,
pub nfts_owned: Option<i64>,
pub collections_owned: Option<i64>,
pub nft_transfers: Option<i64>,
pub token_transfers: Option<i64>,
pub transactions_count: Option<i64>,
}Expand description
Wallet stats
Moralis API returns stats as nested objects like {"nfts": {"total": 5}}
or as flat integers depending on the endpoint version. This struct handles both.
Fields§
§address: Option<String>Address
nfts_owned: Option<i64>NFTs owned
collections_owned: Option<i64>Collections owned
nft_transfers: Option<i64>NFT transfers
token_transfers: Option<i64>Token transfers
transactions_count: Option<i64>Transactions count
Trait Implementations§
Source§impl Clone for WalletStats
impl Clone for WalletStats
Source§fn clone(&self) -> WalletStats
fn clone(&self) -> WalletStats
Returns a duplicate of the value. Read more
1.0.0 · 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 WalletStats
impl Debug for WalletStats
Source§impl<'de> Deserialize<'de> for WalletStats
impl<'de> Deserialize<'de> for WalletStats
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 WalletStats
impl RefUnwindSafe for WalletStats
impl Send for WalletStats
impl Sync for WalletStats
impl Unpin for WalletStats
impl UnwindSafe for WalletStats
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