pub struct PageResponseTokenPrice {
pub data: Vec<PageResponseTokenPriceDataItem>,
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 price",
"type": "object",
"required": [
"address",
"priceInUsd",
"timestamp"
],
"properties": {
"address": {
"description": "Token address",
"examples": [
"6p6xgHyF7AeE6TZkSmFsko444wqoP15icUSqi2jfGiPN"
],
"type": "string"
},
"priceInSol": {
"description": "Price in native token",
"examples": [
"1000"
],
"type": "string"
},
"priceInUsd": {
"description": "Price in USD",
"examples": [
"1000"
],
"type": "string"
},
"timestamp": {
"description": "Timestamp",
"examples": [
1754055151000
],
"type": "integer",
"format": "int64"
}
}
}
},
"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<PageResponseTokenPriceDataItem>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 PageResponseTokenPrice
impl PageResponseTokenPrice
pub fn builder() -> PageResponseTokenPrice
Trait Implementations§
Source§impl Clone for PageResponseTokenPrice
impl Clone for PageResponseTokenPrice
Source§fn clone(&self) -> PageResponseTokenPrice
fn clone(&self) -> PageResponseTokenPrice
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 PageResponseTokenPrice
impl Debug for PageResponseTokenPrice
Source§impl<'de> Deserialize<'de> for PageResponseTokenPrice
impl<'de> Deserialize<'de> for PageResponseTokenPrice
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<&PageResponseTokenPrice> for PageResponseTokenPrice
impl From<&PageResponseTokenPrice> for PageResponseTokenPrice
Source§fn from(value: &PageResponseTokenPrice) -> Self
fn from(value: &PageResponseTokenPrice) -> Self
Converts to this type from the input type.
Source§impl From<PageResponseTokenPrice> for PageResponseTokenPrice
impl From<PageResponseTokenPrice> for PageResponseTokenPrice
Source§fn from(value: PageResponseTokenPrice) -> Self
fn from(value: PageResponseTokenPrice) -> Self
Converts to this type from the input type.
Source§impl Serialize for PageResponseTokenPrice
impl Serialize for PageResponseTokenPrice
Source§impl TryFrom<PageResponseTokenPrice> for PageResponseTokenPrice
impl TryFrom<PageResponseTokenPrice> for PageResponseTokenPrice
Source§type Error = ConversionError
type Error = ConversionError
The type returned in the event of a conversion error.
Source§fn try_from(value: PageResponseTokenPrice) -> Result<Self, ConversionError>
fn try_from(value: PageResponseTokenPrice) -> Result<Self, ConversionError>
Performs the conversion.
Auto Trait Implementations§
impl Freeze for PageResponseTokenPrice
impl RefUnwindSafe for PageResponseTokenPrice
impl Send for PageResponseTokenPrice
impl Sync for PageResponseTokenPrice
impl Unpin for PageResponseTokenPrice
impl UnsafeUnpin for PageResponseTokenPrice
impl UnwindSafe for PageResponseTokenPrice
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