pub struct DexPoolTokenLiquidity {
pub amount_in_native: String,
pub amount_in_usd: String,
pub decimals: i32,
pub price_native: String,
pub price_usd: String,
pub token_address: String,
pub vault_amount: String,
}Expand description
DEX pool token liquidity
JSON schema
{
"description": "DEX pool token liquidity",
"type": "object",
"required": [
"amountInNative",
"amountInUsd",
"decimals",
"priceNative",
"priceUsd",
"tokenAddress",
"vaultAmount"
],
"properties": {
"amountInNative": {
"description": "Amount in native token",
"examples": [
"5000.123"
],
"type": "string"
},
"amountInUsd": {
"description": "Amount in USD",
"examples": [
"1000000.45"
],
"type": "string"
},
"decimals": {
"description": "Token decimals",
"examples": [
6
],
"type": "integer",
"format": "int32"
},
"priceNative": {
"description": "Price in native token",
"examples": [
"0.005"
],
"type": "string"
},
"priceUsd": {
"description": "Price in USD",
"examples": [
"1.0001"
],
"type": "string"
},
"tokenAddress": {
"description": "Token address",
"examples": [
"EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v"
],
"type": "string"
},
"vaultAmount": {
"description": "Vault amount",
"examples": [
"1000000000000"
],
"type": "string"
}
}
}Fields§
§amount_in_native: StringAmount in native token
amount_in_usd: StringAmount in USD
decimals: i32Token decimals
price_native: StringPrice in native token
price_usd: StringPrice in USD
token_address: StringToken address
vault_amount: StringVault 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 UnsafeUnpin 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