pub struct DexPoolSnapshotDto {
pub block_height: i64,
pub block_slot: Option<i64>,
pub block_timestamp: i64,
pub pool_address: String,
pub snapshot_time: i64,
pub token_a: DexPoolTokenSnapshotDto,
pub token_b: DexPoolTokenSnapshotDto,
pub tvl_in_native: String,
pub tvl_in_usd: String,
}Expand description
DexPoolSnapshotDto
JSON schema
{
"type": "object",
"required": [
"blockHeight",
"blockTimestamp",
"poolAddress",
"snapshotTime",
"tokenA",
"tokenB",
"tvlInNative",
"tvlInUsd"
],
"properties": {
"blockHeight": {
"description": "DTO.DEXPOOL.SNAPSHOT.BLOCK_HEIGHT",
"examples": [
123456789
],
"type": "integer",
"format": "int64"
},
"blockSlot": {
"description": "DTO.DEXPOOL.SNAPSHOT.BLOCK_SLOT",
"examples": [
123456789
],
"type": "integer",
"format": "int64"
},
"blockTimestamp": {
"description": "DTO.DEXPOOL.SNAPSHOT.BLOCK_TIMESTAMP",
"examples": [
1705312800
],
"type": "integer",
"format": "int64"
},
"poolAddress": {
"description": "DTO.DEXPOOL.POOL_ADDRESS",
"examples": [
"58oQChx4yWmvKdwLLZzBi4ChoCc2fqCUWBkwMihLYQo2"
],
"type": "string"
},
"snapshotTime": {
"description": "DTO.DEXPOOL.SNAPSHOT.SNAPSHOT_TIME",
"examples": [
1705312800
],
"type": "integer",
"format": "int64"
},
"tokenA": {
"description": "DTO.DEXPOOL.SNAPSHOT.TOKEN_A",
"allOf": [
{
"$ref": "#/components/schemas/DexPoolTokenSnapshotDTO"
}
]
},
"tokenB": {
"description": "DTO.DEXPOOL.SNAPSHOT.TOKEN_B",
"allOf": [
{
"$ref": "#/components/schemas/DexPoolTokenSnapshotDTO"
}
]
},
"tvlInNative": {
"description": "DTO.DEXPOOL.TVL_SOL",
"examples": [
"5000.123"
],
"type": "string"
},
"tvlInUsd": {
"description": "DTO.DEXPOOL.TVL_USD",
"examples": [
"1000000.45"
],
"type": "string"
}
}
}Fields§
§block_height: i64DTO.DEXPOOL.SNAPSHOT.BLOCK_HEIGHT
block_slot: Option<i64>DTO.DEXPOOL.SNAPSHOT.BLOCK_SLOT
block_timestamp: i64DTO.DEXPOOL.SNAPSHOT.BLOCK_TIMESTAMP
pool_address: StringDTO.DEXPOOL.POOL_ADDRESS
snapshot_time: i64DTO.DEXPOOL.SNAPSHOT.SNAPSHOT_TIME
token_a: DexPoolTokenSnapshotDtoDTO.DEXPOOL.SNAPSHOT.TOKEN_A
token_b: DexPoolTokenSnapshotDtoDTO.DEXPOOL.SNAPSHOT.TOKEN_B
tvl_in_native: StringDTO.DEXPOOL.TVL_SOL
tvl_in_usd: StringDTO.DEXPOOL.TVL_USD
Implementations§
Source§impl DexPoolSnapshotDto
impl DexPoolSnapshotDto
pub fn builder() -> DexPoolSnapshotDto
Trait Implementations§
Source§impl Clone for DexPoolSnapshotDto
impl Clone for DexPoolSnapshotDto
Source§fn clone(&self) -> DexPoolSnapshotDto
fn clone(&self) -> DexPoolSnapshotDto
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 DexPoolSnapshotDto
impl Debug for DexPoolSnapshotDto
Source§impl<'de> Deserialize<'de> for DexPoolSnapshotDto
impl<'de> Deserialize<'de> for DexPoolSnapshotDto
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<&DexPoolSnapshotDto> for DexPoolSnapshotDto
impl From<&DexPoolSnapshotDto> for DexPoolSnapshotDto
Source§fn from(value: &DexPoolSnapshotDto) -> Self
fn from(value: &DexPoolSnapshotDto) -> Self
Converts to this type from the input type.
Source§impl From<DexPoolSnapshotDto> for DexPoolSnapshotDto
impl From<DexPoolSnapshotDto> for DexPoolSnapshotDto
Source§fn from(value: DexPoolSnapshotDto) -> Self
fn from(value: DexPoolSnapshotDto) -> Self
Converts to this type from the input type.
Source§impl Serialize for DexPoolSnapshotDto
impl Serialize for DexPoolSnapshotDto
Source§impl TryFrom<DexPoolSnapshotDto> for DexPoolSnapshotDto
impl TryFrom<DexPoolSnapshotDto> for DexPoolSnapshotDto
Source§type Error = ConversionError
type Error = ConversionError
The type returned in the event of a conversion error.
Source§fn try_from(value: DexPoolSnapshotDto) -> Result<Self, ConversionError>
fn try_from(value: DexPoolSnapshotDto) -> Result<Self, ConversionError>
Performs the conversion.
Auto Trait Implementations§
impl Freeze for DexPoolSnapshotDto
impl RefUnwindSafe for DexPoolSnapshotDto
impl Send for DexPoolSnapshotDto
impl Sync for DexPoolSnapshotDto
impl Unpin for DexPoolSnapshotDto
impl UnwindSafe for DexPoolSnapshotDto
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