pub struct DexPoolTokenLiquidity {
pub amount_in_native: String,
pub amount_in_usd: String,
pub decimals: i32,
pub initial_amount_in_native: Option<String>,
pub initial_amount_in_usd: Option<String>,
pub initial_vault_amount: Option<String>,
pub price_native: String,
pub price_usd: String,
pub token_address: String,
pub vault_address: Option<String>,
pub vault_amount: String,
pub vault_owner_address: Option<String>,
}Expand description
DexPool token liquidity
JSON schema
{
"description": "DexPool 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"
},
"initialAmountInNative": {
"description": "Initial amount in native token",
"examples": [
"5000.123"
],
"type": "string"
},
"initialAmountInUsd": {
"description": "Initial amount in USD",
"examples": [
"1000000.45"
],
"type": "string"
},
"initialVaultAmount": {
"description": "Initial vault amount",
"examples": [
"1000000000000"
],
"type": "string"
},
"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"
},
"vaultAddress": {
"description": "Vault address",
"examples": [
"4Nd1mWQwKJvZMN9eMfDgRQNTpL7X6XK3x2bUpUtZ3XkS"
],
"type": "string"
},
"vaultAmount": {
"description": "Vault amount",
"examples": [
"1000000000000"
],
"type": "string"
},
"vaultOwnerAddress": {
"description": "Vault owner address",
"examples": [
"8PqT4F9gZr9nEqM3bDZSmLx1aG9TqJ2oV6CvS7kWbHqA"
],
"type": "string"
}
}
}Fields§
§amount_in_native: StringAmount in native token
amount_in_usd: StringAmount in USD
decimals: i32Token decimals
initial_amount_in_native: Option<String>Initial amount in native token
initial_amount_in_usd: Option<String>Initial amount in USD
initial_vault_amount: Option<String>Initial vault amount
price_native: StringPrice in native token
price_usd: StringPrice in USD
token_address: StringToken address
vault_address: Option<String>Vault address
vault_amount: StringVault amount
vault_owner_address: Option<String>Vault owner address
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 (const: unstable) · 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