pub struct PageResponseTokenLiquiditySnapshot {
pub data: Vec<PageResponseTokenLiquiditySnapshotDataItem>,
pub end_cursor: Option<String>,
pub has_next: Option<bool>,
pub has_prev: Option<bool>,
pub start_cursor: Option<String>,
}Expand description
Generic pagination response
JSON schema
{
"description": "Generic pagination response",
"type": "object",
"required": [
"data"
],
"properties": {
"data": {
"description": "Page data",
"type": "array",
"items": {
"description": "Token liquidity snapshot",
"type": "object",
"required": [
"calculatedAt",
"maxLiquidityInNative",
"maxLiquidityInUsd",
"maxLiquidityPoolAddress",
"poolCount",
"priceNative",
"priceUsd",
"snapshotTime",
"totalLiquidityInNative",
"totalLiquidityInUsd"
],
"properties": {
"calculatedAt": {
"description": "ENTITY.TOKEN_LIQUIDITY_SNAPSHOT.CALCULATED_AT",
"examples": [
1705312800000
],
"type": "integer",
"format": "int64"
},
"maxLiquidityInNative": {
"description": "ENTITY.TOKEN_LIQUIDITY_SNAPSHOT.MAX_LIQUIDITY_IN_NATIVE",
"examples": [
"5000.123"
],
"type": "string"
},
"maxLiquidityInUsd": {
"description": "ENTITY.TOKEN_LIQUIDITY_SNAPSHOT.MAX_LIQUIDITY_IN_USD",
"examples": [
"1000000.45"
],
"type": "string"
},
"maxLiquidityPoolAddress": {
"description": "ENTITY.TOKEN_LIQUIDITY_SNAPSHOT.MAX_LIQUIDITY_POOL_ADDRESS",
"examples": [
"58oQChx4yWmvKdwLLZzBi4ChoCc2fqCUWBkwMihLYQo2"
],
"type": "string"
},
"poolCount": {
"description": "ENTITY.TOKEN_LIQUIDITY_SNAPSHOT.POOL_COUNT",
"examples": [
5
],
"type": "integer",
"format": "int64"
},
"priceNative": {
"description": "ENTITY.TOKEN_LIQUIDITY_SNAPSHOT.PRICE_NATIVE",
"examples": [
"0.005"
],
"type": "string"
},
"priceUsd": {
"description": "ENTITY.TOKEN_LIQUIDITY_SNAPSHOT.PRICE_USD",
"examples": [
"1.0001"
],
"type": "string"
},
"snapshotTime": {
"description": "ENTITY.TOKEN_LIQUIDITY_SNAPSHOT.SNAPSHOT_TIME",
"examples": [
1705312800000
],
"type": "integer",
"format": "int64"
},
"totalLiquidityInNative": {
"description": "ENTITY.TOKEN_LIQUIDITY_SNAPSHOT.TOTAL_LIQUIDITY_IN_NATIVE",
"examples": [
"10000.246"
],
"type": "string"
},
"totalLiquidityInUsd": {
"description": "ENTITY.TOKEN_LIQUIDITY_SNAPSHOT.TOTAL_LIQUIDITY_IN_USD",
"examples": [
"2000000.90"
],
"type": "string"
}
}
}
},
"endCursor": {
"description": "Cursor for the end of current page",
"examples": [
"eyJpZCI6ImVuZCJ9"
],
"type": "string"
},
"hasNext": {
"description": "Whether there is a next page",
"examples": [
false
],
"type": "boolean"
},
"hasPrev": {
"description": "Whether there is a previous page",
"examples": [
false
],
"type": "boolean"
},
"startCursor": {
"description": "Cursor for the start of current page",
"examples": [
"eyJpZCI6InN0YXJ0In0="
],
"type": "string"
}
}
}Fields§
§data: Vec<PageResponseTokenLiquiditySnapshotDataItem>Page data
end_cursor: Option<String>Cursor for the end of current page
has_next: Option<bool>Whether there is a next page
has_prev: Option<bool>Whether there is a previous page
start_cursor: Option<String>Cursor for the start of current page
Implementations§
Trait Implementations§
Source§impl Clone for PageResponseTokenLiquiditySnapshot
impl Clone for PageResponseTokenLiquiditySnapshot
Source§fn clone(&self) -> PageResponseTokenLiquiditySnapshot
fn clone(&self) -> PageResponseTokenLiquiditySnapshot
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<'de> Deserialize<'de> for PageResponseTokenLiquiditySnapshot
impl<'de> Deserialize<'de> for PageResponseTokenLiquiditySnapshot
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<&PageResponseTokenLiquiditySnapshot> for PageResponseTokenLiquiditySnapshot
impl From<&PageResponseTokenLiquiditySnapshot> for PageResponseTokenLiquiditySnapshot
Source§fn from(value: &PageResponseTokenLiquiditySnapshot) -> Self
fn from(value: &PageResponseTokenLiquiditySnapshot) -> Self
Converts to this type from the input type.
Source§impl From<PageResponseTokenLiquiditySnapshot> for PageResponseTokenLiquiditySnapshot
impl From<PageResponseTokenLiquiditySnapshot> for PageResponseTokenLiquiditySnapshot
Source§fn from(value: PageResponseTokenLiquiditySnapshot) -> Self
fn from(value: PageResponseTokenLiquiditySnapshot) -> Self
Converts to this type from the input type.
Source§impl TryFrom<PageResponseTokenLiquiditySnapshot> for PageResponseTokenLiquiditySnapshot
impl TryFrom<PageResponseTokenLiquiditySnapshot> for PageResponseTokenLiquiditySnapshot
Source§type Error = ConversionError
type Error = ConversionError
The type returned in the event of a conversion error.
Source§fn try_from(
value: PageResponseTokenLiquiditySnapshot,
) -> Result<Self, ConversionError>
fn try_from( value: PageResponseTokenLiquiditySnapshot, ) -> Result<Self, ConversionError>
Performs the conversion.
Auto Trait Implementations§
impl Freeze for PageResponseTokenLiquiditySnapshot
impl RefUnwindSafe for PageResponseTokenLiquiditySnapshot
impl Send for PageResponseTokenLiquiditySnapshot
impl Sync for PageResponseTokenLiquiditySnapshot
impl Unpin for PageResponseTokenLiquiditySnapshot
impl UnsafeUnpin for PageResponseTokenLiquiditySnapshot
impl UnwindSafe for PageResponseTokenLiquiditySnapshot
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