pub struct PageResponseToken {
pub data: Vec<PageResponseTokenDataItem>,
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 entity — mirrors TS `TokenDTO extends TokenMetadataDTO`.\n\nTS uses class inheritance to flatten metadata into the top level.\nRust uses `#[serde(flatten)]` for the same effect.",
"type": "object",
"required": [
"address",
"chain",
"decimals",
"name",
"symbol"
],
"properties": {
"address": {
"description": "ENTITY.TOKEN.ADDRESS",
"examples": [
"EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v"
],
"type": "string"
},
"chain": {
"description": "ENTITY.TOKEN.CHAIN",
"examples": [
"sol"
],
"type": "string"
},
"coingeckoCoinId": {
"description": "ENTITY.TOKEN.COINGECKO_COIN_ID",
"examples": [
"usd-coin"
],
"type": "string"
},
"decimals": {
"description": "ENTITY.TOKEN.DECIMALS",
"examples": [
9
],
"type": "integer",
"format": "int32"
},
"description": {
"description": "ENTITY.TOKEN.DESCRIPTION",
"examples": [
"USDC is a stablecoin pegged to the US dollar"
],
"type": "string"
},
"devLastTokenCreatedAt": {
"description": "ENTITY.TOKEN.DEV_LAST_TOKEN_CREATED_AT",
"examples": [
"2025-12-03T09:23:34.000Z"
],
"type": "string"
},
"devTotalTokens": {
"description": "ENTITY.TOKEN.DEV_TOTAL_TOKENS",
"examples": [
"163"
],
"type": "string"
},
"extension": {
"$ref": "#/components/schemas/TokenExtra"
},
"extra": {
"$ref": "#/components/schemas/TokenExtra"
},
"imageUrl": {
"description": "ENTITY.TOKEN.IMAGE_URL",
"examples": [
"https://raw.githubusercontent.com/solana-labs/token-list/main/assets/mainnet/EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v/logo.png"
],
"type": "string"
},
"market": {
"description": "ENTITY.TOKEN.MARKET",
"examples": [
"USDC-SOL"
],
"type": "string"
},
"marketData": {
"$ref": "#/components/schemas/TokenMarketData"
},
"metadataAddress": {
"description": "ENTITY.TOKEN.METADATA_ADDRESS",
"examples": [
"metaqbxxUerdq28cj1RbAWkYQm3ybzjb6a8bt518x1s"
],
"type": "string"
},
"name": {
"description": "ENTITY.TOKEN.NAME",
"examples": [
"USD Coin"
],
"type": "string"
},
"socialMedias": {
"$ref": "#/components/schemas/TokenSocialMedias"
},
"stats": {
"$ref": "#/components/schemas/TokenStats"
},
"symbol": {
"description": "ENTITY.TOKEN.SYMBOL",
"examples": [
"USDC"
],
"type": "string"
},
"tokenCreatedAt": {
"description": "ENTITY.TOKEN.TOKEN_CREATED_AT",
"examples": [
1710417600000
],
"type": "integer",
"format": "int64"
},
"tokenCreatedBlockHeight": {
"description": "ENTITY.TOKEN.TOKEN_CREATED_BLOCK_HEIGHT",
"examples": [
"220000000"
],
"type": "string"
},
"tokenCreatedSlot": {
"description": "ENTITY.TOKEN.TOKEN_CREATED_SLOT",
"examples": [
"230000000"
],
"type": "string"
},
"tokenCreatedTxSignature": {
"description": "ENTITY.TOKEN.TOKEN_CREATED_TX_SIGNATURE",
"examples": [
"5dJ1BxPiFT7w7aBdkxNy2jopGZnZoLwRwS8e9GkEXrVz..."
],
"type": "string"
},
"tokenCreators": {
"description": "ENTITY.TOKEN.TOKEN_CREATORS",
"type": "array",
"items": {
"$ref": "#/components/schemas/TokenCreator"
}
},
"uri": {
"description": "ENTITY.TOKEN.URI",
"examples": [
"https://arweave.net/abc123"
],
"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<PageResponseTokenDataItem>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 PageResponseToken
impl PageResponseToken
pub fn builder() -> PageResponseToken
Trait Implementations§
Source§impl Clone for PageResponseToken
impl Clone for PageResponseToken
Source§fn clone(&self) -> PageResponseToken
fn clone(&self) -> PageResponseToken
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 PageResponseToken
impl Debug for PageResponseToken
Source§impl<'de> Deserialize<'de> for PageResponseToken
impl<'de> Deserialize<'de> for PageResponseToken
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<&PageResponseToken> for PageResponseToken
impl From<&PageResponseToken> for PageResponseToken
Source§fn from(value: &PageResponseToken) -> Self
fn from(value: &PageResponseToken) -> Self
Converts to this type from the input type.
Source§impl From<PageResponseToken> for PageResponseToken
impl From<PageResponseToken> for PageResponseToken
Source§fn from(value: PageResponseToken) -> Self
fn from(value: PageResponseToken) -> Self
Converts to this type from the input type.
Source§impl Serialize for PageResponseToken
impl Serialize for PageResponseToken
Source§impl TryFrom<PageResponseToken> for PageResponseToken
impl TryFrom<PageResponseToken> for PageResponseToken
Source§type Error = ConversionError
type Error = ConversionError
The type returned in the event of a conversion error.
Source§fn try_from(value: PageResponseToken) -> Result<Self, ConversionError>
fn try_from(value: PageResponseToken) -> Result<Self, ConversionError>
Performs the conversion.
Auto Trait Implementations§
impl Freeze for PageResponseToken
impl RefUnwindSafe for PageResponseToken
impl Send for PageResponseToken
impl Sync for PageResponseToken
impl Unpin for PageResponseToken
impl UnsafeUnpin for PageResponseToken
impl UnwindSafe for PageResponseToken
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