pub struct DexPoolTokenLiquidity {
pub amount_in_native: String,
pub amount_in_usd: String,
pub price_native: String,
pub price_usd: String,
pub token_address: String,
pub token_decimals: i64,
pub vault_amount: String,
}Expand description
DexPoolTokenLiquidity
JSON schema
{
"type": "object",
"required": [
"amountInNative",
"amountInUsd",
"priceNative",
"priceUsd",
"tokenAddress",
"tokenDecimals",
"vaultAmount"
],
"properties": {
"amountInNative": {
"description": "DTO.DEXPOOL.AMOUNT_IN_NATIVE",
"examples": [
"5000.123"
],
"type": "string"
},
"amountInUsd": {
"description": "DTO.DEXPOOL.AMOUNT_IN_USD",
"examples": [
"1000000.45"
],
"type": "string"
},
"priceNative": {
"description": "DTO.DEXPOOL.PRICE_NATIVE",
"examples": [
"0.005"
],
"type": "string"
},
"priceUsd": {
"description": "DTO.DEXPOOL.PRICE_USD",
"examples": [
"1.0001"
],
"type": "string"
},
"tokenAddress": {
"description": "DTO.DEXPOOL.TOKEN_ADDRESS",
"examples": [
"EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v"
],
"type": "string"
},
"tokenDecimals": {
"description": "DTO.DEXPOOL.TOKEN_DECIMALS",
"examples": [
6
],
"type": "integer"
},
"vaultAmount": {
"description": "DTO.DEXPOOL.VAULT_AMOUNT",
"examples": [
"1000000000000"
],
"type": "string"
}
}
}Fields§
§amount_in_native: StringDTO.DEXPOOL.AMOUNT_IN_NATIVE
amount_in_usd: StringDTO.DEXPOOL.AMOUNT_IN_USD
price_native: StringDTO.DEXPOOL.PRICE_NATIVE
price_usd: StringDTO.DEXPOOL.PRICE_USD
token_address: StringDTO.DEXPOOL.TOKEN_ADDRESS
token_decimals: i64DTO.DEXPOOL.TOKEN_DECIMALS
vault_amount: StringDTO.DEXPOOL.VAULT_AMOUNT
Implementations§
Source§impl DexPoolTokenLiquidity
impl DexPoolTokenLiquidity
pub fn builder() -> DexPoolTokenLiquidity
Trait Implementations§
Source§impl Clone for DexPoolTokenLiquidity
impl Clone for DexPoolTokenLiquidity
Source§fn clone(&self) -> DexPoolTokenLiquidity
fn clone(&self) -> DexPoolTokenLiquidity
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 DexPoolTokenLiquidity
impl Debug for DexPoolTokenLiquidity
Source§impl<'de> Deserialize<'de> for DexPoolTokenLiquidity
impl<'de> Deserialize<'de> for DexPoolTokenLiquidity
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<&DexPoolTokenLiquidity> for DexPoolTokenLiquidity
impl From<&DexPoolTokenLiquidity> for DexPoolTokenLiquidity
Source§fn from(value: &DexPoolTokenLiquidity) -> Self
fn from(value: &DexPoolTokenLiquidity) -> Self
Converts to this type from the input type.
Source§impl From<DexPoolTokenLiquidity> for DexPoolTokenLiquidity
impl From<DexPoolTokenLiquidity> for DexPoolTokenLiquidity
Source§fn from(value: DexPoolTokenLiquidity) -> Self
fn from(value: DexPoolTokenLiquidity) -> Self
Converts to this type from the input type.
Source§impl Serialize for DexPoolTokenLiquidity
impl Serialize for DexPoolTokenLiquidity
Source§impl TryFrom<DexPoolTokenLiquidity> for DexPoolTokenLiquidity
impl TryFrom<DexPoolTokenLiquidity> for DexPoolTokenLiquidity
Source§type Error = ConversionError
type Error = ConversionError
The type returned in the event of a conversion error.
Source§fn try_from(value: DexPoolTokenLiquidity) -> Result<Self, ConversionError>
fn try_from(value: DexPoolTokenLiquidity) -> Result<Self, ConversionError>
Performs the conversion.
Auto Trait Implementations§
impl Freeze for DexPoolTokenLiquidity
impl RefUnwindSafe for DexPoolTokenLiquidity
impl Send for DexPoolTokenLiquidity
impl Sync for DexPoolTokenLiquidity
impl Unpin for DexPoolTokenLiquidity
impl UnwindSafe for DexPoolTokenLiquidity
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