pub struct PageResponseDexPool {
pub data: Vec<PageResponseDexPoolDataItem>,
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": "DEX pool",
"type": "object",
"required": [
"chain",
"poolAddress",
"tokenAAddress",
"tokenBAddress"
],
"properties": {
"chain": {
"description": "Chain",
"examples": [
"sol"
],
"type": "string"
},
"poolAddress": {
"description": "Pool address",
"examples": [
"58oQChx4yWmvKdwLLZzBi4ChoCc2fqCUWBkwMihLYQo2"
],
"type": "string"
},
"programAddress": {
"description": "DEX program address",
"examples": [
"675kPX9MHTjS2zt1qfr1NYHuzeLXfQM9H24wFSUt1Mp8"
],
"type": "string"
},
"protocolFamily": {
"description": "Protocol family",
"examples": [
"raydium"
],
"type": "string"
},
"tokenAAddress": {
"description": "Token A address",
"examples": [
"EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v"
],
"type": "string"
},
"tokenBAddress": {
"description": "Token B address",
"examples": [
"So11111111111111111111111111111111111111112"
],
"type": "string"
},
"tvlInSol": {
"description": "TVL in native token",
"examples": [
"1000000.45"
],
"type": "string"
},
"tvlInUsd": {
"description": "TVL in USD",
"examples": [
"1000000.45"
],
"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<PageResponseDexPoolDataItem>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§
Source§impl PageResponseDexPool
impl PageResponseDexPool
pub fn builder() -> PageResponseDexPool
Trait Implementations§
Source§impl Clone for PageResponseDexPool
impl Clone for PageResponseDexPool
Source§fn clone(&self) -> PageResponseDexPool
fn clone(&self) -> PageResponseDexPool
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 PageResponseDexPool
impl Debug for PageResponseDexPool
Source§impl<'de> Deserialize<'de> for PageResponseDexPool
impl<'de> Deserialize<'de> for PageResponseDexPool
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<&PageResponseDexPool> for PageResponseDexPool
impl From<&PageResponseDexPool> for PageResponseDexPool
Source§fn from(value: &PageResponseDexPool) -> Self
fn from(value: &PageResponseDexPool) -> Self
Converts to this type from the input type.
Source§impl From<PageResponseDexPool> for PageResponseDexPool
impl From<PageResponseDexPool> for PageResponseDexPool
Source§fn from(value: PageResponseDexPool) -> Self
fn from(value: PageResponseDexPool) -> Self
Converts to this type from the input type.
Source§impl Serialize for PageResponseDexPool
impl Serialize for PageResponseDexPool
Source§impl TryFrom<PageResponseDexPool> for PageResponseDexPool
impl TryFrom<PageResponseDexPool> for PageResponseDexPool
Source§type Error = ConversionError
type Error = ConversionError
The type returned in the event of a conversion error.
Source§fn try_from(value: PageResponseDexPool) -> Result<Self, ConversionError>
fn try_from(value: PageResponseDexPool) -> Result<Self, ConversionError>
Performs the conversion.
Auto Trait Implementations§
impl Freeze for PageResponseDexPool
impl RefUnwindSafe for PageResponseDexPool
impl Send for PageResponseDexPool
impl Sync for PageResponseDexPool
impl Unpin for PageResponseDexPool
impl UnsafeUnpin for PageResponseDexPool
impl UnwindSafe for PageResponseDexPool
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