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