pub struct WalletNetWorth {
pub chain: String,
pub token_count: Option<i64>,
pub total_value_in_native: Option<String>,
pub total_value_in_usd: Option<String>,
pub wallet_address: String,
}Expand description
Wallet net worth summary
JSON schema
{
"description": "Wallet net worth summary",
"type": "object",
"required": [
"chain",
"walletAddress"
],
"properties": {
"chain": {
"description": "ENTITY.WALLET_NET_WORTH.CHAIN",
"examples": [
"sol"
],
"type": "string"
},
"tokenCount": {
"description": "ENTITY.WALLET_NET_WORTH.TOKEN_COUNT",
"examples": [
5
],
"type": "integer",
"format": "int64"
},
"totalValueInNative": {
"description": "ENTITY.WALLET_NET_WORTH.TOTAL_VALUE_IN_NATIVE",
"examples": [
"0.002"
],
"type": "string"
},
"totalValueInUsd": {
"description": "ENTITY.WALLET_NET_WORTH.TOTAL_VALUE_IN_USD",
"examples": [
"3.369918"
],
"type": "string"
},
"walletAddress": {
"description": "ENTITY.WALLET_NET_WORTH.WALLET_ADDRESS",
"examples": [
"8X35rQUK2u9hfn8rMPwwr6ZSEUhbmfDPEapp589XyoM1"
],
"type": "string"
}
}
}Fields§
§chain: StringENTITY.WALLET_NET_WORTH.CHAIN
token_count: Option<i64>ENTITY.WALLET_NET_WORTH.TOKEN_COUNT
total_value_in_native: Option<String>ENTITY.WALLET_NET_WORTH.TOTAL_VALUE_IN_NATIVE
total_value_in_usd: Option<String>ENTITY.WALLET_NET_WORTH.TOTAL_VALUE_IN_USD
wallet_address: StringENTITY.WALLET_NET_WORTH.WALLET_ADDRESS
Implementations§
Source§impl WalletNetWorth
impl WalletNetWorth
pub fn builder() -> WalletNetWorth
Trait Implementations§
Source§impl Clone for WalletNetWorth
impl Clone for WalletNetWorth
Source§fn clone(&self) -> WalletNetWorth
fn clone(&self) -> WalletNetWorth
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 WalletNetWorth
impl Debug for WalletNetWorth
Source§impl<'de> Deserialize<'de> for WalletNetWorth
impl<'de> Deserialize<'de> for WalletNetWorth
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
Source§impl From<&WalletNetWorth> for WalletNetWorth
impl From<&WalletNetWorth> for WalletNetWorth
Source§fn from(value: &WalletNetWorth) -> Self
fn from(value: &WalletNetWorth) -> Self
Converts to this type from the input type.
Source§impl From<WalletNetWorth> for WalletNetWorth
impl From<WalletNetWorth> for WalletNetWorth
Source§fn from(value: WalletNetWorth) -> Self
fn from(value: WalletNetWorth) -> Self
Converts to this type from the input type.
Source§impl Serialize for WalletNetWorth
impl Serialize for WalletNetWorth
Source§impl TryFrom<WalletNetWorth> for WalletNetWorth
impl TryFrom<WalletNetWorth> for WalletNetWorth
Source§type Error = ConversionError
type Error = ConversionError
The type returned in the event of a conversion error.
Source§fn try_from(value: WalletNetWorth) -> Result<Self, ConversionError>
fn try_from(value: WalletNetWorth) -> Result<Self, ConversionError>
Performs the conversion.
Auto Trait Implementations§
impl Freeze for WalletNetWorth
impl RefUnwindSafe for WalletNetWorth
impl Send for WalletNetWorth
impl Sync for WalletNetWorth
impl Unpin for WalletNetWorth
impl UnsafeUnpin for WalletNetWorth
impl UnwindSafe for WalletNetWorth
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