pub struct WalletNetWorthItemDto {
pub amount: String,
pub chain: String,
pub decimals: i64,
pub logo_uri: Option<String>,
pub name: String,
pub price_in_native: String,
pub price_in_usd: String,
pub symbol: String,
pub token_address: String,
pub value_in_native: String,
pub value_in_usd: String,
}Expand description
WalletNetWorthItemDto
JSON schema
{
"type": "object",
"required": [
"amount",
"chain",
"decimals",
"name",
"priceInNative",
"priceInUsd",
"symbol",
"tokenAddress",
"valueInNative",
"valueInUsd"
],
"properties": {
"amount": {
"description": "DTO.WALLET.NET_WORTH.ITEM.AMOUNT",
"examples": [
"69"
],
"type": "string"
},
"chain": {
"description": "GLOBAL.CHAIN.DESCRIPTION",
"examples": [
"sol"
],
"type": "string"
},
"decimals": {
"description": "DTO.WALLET.NET_WORTH.ITEM.DECIMALS",
"examples": [
6
],
"type": "integer",
"format": "int64"
},
"logoUri": {
"description": "DTO.WALLET.NET_WORTH.ITEM.LOGO_URI",
"examples": [
"https://pump.mypinata.cloud/ipfs/QmcCjKS4MMeji11PqnNhqDSXd6gD4iGj1nC6zjyfaekuQZ"
],
"type": "string"
},
"name": {
"description": "DTO.WALLET.NET_WORTH.ITEM.NAME",
"examples": [
"Smellow"
],
"type": "string"
},
"priceInNative": {
"description": "DTO.WALLET.NET_WORTH.ITEM.PRICE_IN_NATIVE",
"examples": [
"0.000001855"
],
"type": "string"
},
"priceInUsd": {
"description": "DTO.WALLET.NET_WORTH.ITEM.PRICE_IN_USD",
"examples": [
"0.00014999198221145974"
],
"type": "string"
},
"symbol": {
"description": "DTO.WALLET.NET_WORTH.ITEM.SYMBOL",
"examples": [
"SMLO"
],
"type": "string"
},
"tokenAddress": {
"description": "DTO.WALLET.NET_WORTH.ITEM.TOKEN_ADDRESS",
"examples": [
"EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v"
],
"type": "string"
},
"valueInNative": {
"description": "DTO.WALLET.NET_WORTH.ITEM.VALUE_IN_NATIVE",
"examples": [
"0.000127995"
],
"type": "string"
},
"valueInUsd": {
"description": "DTO.WALLET.NET_WORTH.ITEM.VALUE_IN_USD",
"examples": [
"0.010349446772590722"
],
"type": "string"
}
}
}Fields§
§amount: StringDTO.WALLET.NET_WORTH.ITEM.AMOUNT
chain: StringGLOBAL.CHAIN.DESCRIPTION
decimals: i64DTO.WALLET.NET_WORTH.ITEM.DECIMALS
logo_uri: Option<String>DTO.WALLET.NET_WORTH.ITEM.LOGO_URI
name: StringDTO.WALLET.NET_WORTH.ITEM.NAME
price_in_native: StringDTO.WALLET.NET_WORTH.ITEM.PRICE_IN_NATIVE
price_in_usd: StringDTO.WALLET.NET_WORTH.ITEM.PRICE_IN_USD
symbol: StringDTO.WALLET.NET_WORTH.ITEM.SYMBOL
token_address: StringDTO.WALLET.NET_WORTH.ITEM.TOKEN_ADDRESS
value_in_native: StringDTO.WALLET.NET_WORTH.ITEM.VALUE_IN_NATIVE
value_in_usd: StringDTO.WALLET.NET_WORTH.ITEM.VALUE_IN_USD
Implementations§
Source§impl WalletNetWorthItemDto
impl WalletNetWorthItemDto
pub fn builder() -> WalletNetWorthItemDto
Trait Implementations§
Source§impl Clone for WalletNetWorthItemDto
impl Clone for WalletNetWorthItemDto
Source§fn clone(&self) -> WalletNetWorthItemDto
fn clone(&self) -> WalletNetWorthItemDto
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 WalletNetWorthItemDto
impl Debug for WalletNetWorthItemDto
Source§impl<'de> Deserialize<'de> for WalletNetWorthItemDto
impl<'de> Deserialize<'de> for WalletNetWorthItemDto
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<&WalletNetWorthItemDto> for WalletNetWorthItemDto
impl From<&WalletNetWorthItemDto> for WalletNetWorthItemDto
Source§fn from(value: &WalletNetWorthItemDto) -> Self
fn from(value: &WalletNetWorthItemDto) -> Self
Converts to this type from the input type.
Source§impl From<WalletNetWorthItemDto> for WalletNetWorthItemDto
impl From<WalletNetWorthItemDto> for WalletNetWorthItemDto
Source§fn from(value: WalletNetWorthItemDto) -> Self
fn from(value: WalletNetWorthItemDto) -> Self
Converts to this type from the input type.
Source§impl Serialize for WalletNetWorthItemDto
impl Serialize for WalletNetWorthItemDto
Source§impl TryFrom<WalletNetWorthItemDto> for WalletNetWorthItemDto
impl TryFrom<WalletNetWorthItemDto> for WalletNetWorthItemDto
Source§type Error = ConversionError
type Error = ConversionError
The type returned in the event of a conversion error.
Source§fn try_from(value: WalletNetWorthItemDto) -> Result<Self, ConversionError>
fn try_from(value: WalletNetWorthItemDto) -> Result<Self, ConversionError>
Performs the conversion.
Auto Trait Implementations§
impl Freeze for WalletNetWorthItemDto
impl RefUnwindSafe for WalletNetWorthItemDto
impl Send for WalletNetWorthItemDto
impl Sync for WalletNetWorthItemDto
impl Unpin for WalletNetWorthItemDto
impl UnwindSafe for WalletNetWorthItemDto
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