pub struct PageResponseTokenTrader {
pub data: Vec<PageResponseTokenTraderDataItem>,
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 trader info — mirrors TS `TokenTraderDTO`",
"type": "object",
"required": [
"address"
],
"properties": {
"address": {
"description": "Wallet address",
"examples": [
"MJKqp326RZCHnAAbew9MDdui3iCKWco7fsK9sVuZTX2"
],
"type": "string"
},
"blockTimestamp": {
"description": "Block timestamp (sniper)",
"examples": [
"2025-01-15T10:30:00Z"
],
"type": "string"
},
"onchainCreatedAt": {
"description": "Onchain account creation time (fresh/dev)",
"examples": [
"2025-01-15T10:30:00Z"
],
"type": "string"
},
"percentileRankTradeAmountInUsd": {
"description": "Percentile rank of trade amount in USD (pro/insider)",
"examples": [
"0.98"
],
"type": "string"
},
"percentileRankTradeCount": {
"description": "Percentile rank of trade count (pro)",
"examples": [
95
],
"type": "integer",
"format": "int64"
},
"rankTradeAmountInUsd": {
"description": "Rank trade amount in USD (insider)",
"examples": [
"0.95"
],
"type": "string"
},
"tradeAmountInNative": {
"description": "Trade amount in native token (pro/insider)",
"examples": [
"1500.50"
],
"type": "string"
},
"tradeAmountInUsd": {
"description": "Trade amount in USD (pro/insider)",
"examples": [
"45000.00"
],
"type": "string"
},
"tradeCount": {
"description": "Trade count (pro/insider)",
"examples": [
42
],
"type": "integer",
"format": "int64"
},
"transactionSignature": {
"description": "Transaction signature (sandwish/bundle/sniper)",
"examples": [
"5dJ1BxPiFT7w7aBdkxNy2jopGZnZoLwRwS8e9GkEXrVz..."
],
"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<PageResponseTokenTraderDataItem>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 PageResponseTokenTrader
impl PageResponseTokenTrader
pub fn builder() -> PageResponseTokenTrader
Trait Implementations§
Source§impl Clone for PageResponseTokenTrader
impl Clone for PageResponseTokenTrader
Source§fn clone(&self) -> PageResponseTokenTrader
fn clone(&self) -> PageResponseTokenTrader
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 PageResponseTokenTrader
impl Debug for PageResponseTokenTrader
Source§impl<'de> Deserialize<'de> for PageResponseTokenTrader
impl<'de> Deserialize<'de> for PageResponseTokenTrader
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<&PageResponseTokenTrader> for PageResponseTokenTrader
impl From<&PageResponseTokenTrader> for PageResponseTokenTrader
Source§fn from(value: &PageResponseTokenTrader) -> Self
fn from(value: &PageResponseTokenTrader) -> Self
Converts to this type from the input type.
Source§impl From<PageResponseTokenTrader> for PageResponseTokenTrader
impl From<PageResponseTokenTrader> for PageResponseTokenTrader
Source§fn from(value: PageResponseTokenTrader) -> Self
fn from(value: PageResponseTokenTrader) -> Self
Converts to this type from the input type.
Source§impl Serialize for PageResponseTokenTrader
impl Serialize for PageResponseTokenTrader
Source§impl TryFrom<PageResponseTokenTrader> for PageResponseTokenTrader
impl TryFrom<PageResponseTokenTrader> for PageResponseTokenTrader
Source§type Error = ConversionError
type Error = ConversionError
The type returned in the event of a conversion error.
Source§fn try_from(value: PageResponseTokenTrader) -> Result<Self, ConversionError>
fn try_from(value: PageResponseTokenTrader) -> Result<Self, ConversionError>
Performs the conversion.
Auto Trait Implementations§
impl Freeze for PageResponseTokenTrader
impl RefUnwindSafe for PageResponseTokenTrader
impl Send for PageResponseTokenTrader
impl Sync for PageResponseTokenTrader
impl Unpin for PageResponseTokenTrader
impl UnsafeUnpin for PageResponseTokenTrader
impl UnwindSafe for PageResponseTokenTrader
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