pub struct PageResponseTopTrader {
pub data: Vec<PageResponseTopTraderDataItem>,
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": "Top trader statistics",
"type": "object",
"required": [
"buyAmount",
"buyAmountInNative",
"buyAmountInUsd",
"buyCount",
"sellAmount",
"sellAmountInNative",
"sellAmountInUsd",
"sellCount",
"tokenAddress",
"tradeAmount",
"tradeCount",
"walletAddress"
],
"properties": {
"buyAmount": {
"examples": [
"600000"
],
"type": "string"
},
"buyAmountInNative": {
"examples": [
"100.5"
],
"type": "string"
},
"buyAmountInUsd": {
"examples": [
"12000.50"
],
"type": "string"
},
"buyCount": {
"examples": [
60
],
"type": "integer",
"format": "int64"
},
"sellAmount": {
"examples": [
"400000"
],
"type": "string"
},
"sellAmountInNative": {
"examples": [
"66.8"
],
"type": "string"
},
"sellAmountInUsd": {
"examples": [
"8000.30"
],
"type": "string"
},
"sellCount": {
"examples": [
40
],
"type": "integer",
"format": "int64"
},
"tokenAddress": {
"examples": [
"6p6xgHyF7AeE6TZkSmFsko444wqoP15icUSqi2jfGiPN"
],
"type": "string"
},
"tradeAmount": {
"examples": [
"1000000"
],
"type": "string"
},
"tradeCount": {
"examples": [
100
],
"type": "integer",
"format": "int64"
},
"walletAddress": {
"examples": [
"3xd4LGVWtYXLBspR6X5JWbW49NXmEehfPtX6Kqx98b4w"
],
"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<PageResponseTopTraderDataItem>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 PageResponseTopTrader
impl PageResponseTopTrader
pub fn builder() -> PageResponseTopTrader
Trait Implementations§
Source§impl Clone for PageResponseTopTrader
impl Clone for PageResponseTopTrader
Source§fn clone(&self) -> PageResponseTopTrader
fn clone(&self) -> PageResponseTopTrader
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 PageResponseTopTrader
impl Debug for PageResponseTopTrader
Source§impl<'de> Deserialize<'de> for PageResponseTopTrader
impl<'de> Deserialize<'de> for PageResponseTopTrader
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<&PageResponseTopTrader> for PageResponseTopTrader
impl From<&PageResponseTopTrader> for PageResponseTopTrader
Source§fn from(value: &PageResponseTopTrader) -> Self
fn from(value: &PageResponseTopTrader) -> Self
Converts to this type from the input type.
Source§impl From<PageResponseTopTrader> for PageResponseTopTrader
impl From<PageResponseTopTrader> for PageResponseTopTrader
Source§fn from(value: PageResponseTopTrader) -> Self
fn from(value: PageResponseTopTrader) -> Self
Converts to this type from the input type.
Source§impl Serialize for PageResponseTopTrader
impl Serialize for PageResponseTopTrader
Source§impl TryFrom<PageResponseTopTrader> for PageResponseTopTrader
impl TryFrom<PageResponseTopTrader> for PageResponseTopTrader
Source§type Error = ConversionError
type Error = ConversionError
The type returned in the event of a conversion error.
Source§fn try_from(value: PageResponseTopTrader) -> Result<Self, ConversionError>
fn try_from(value: PageResponseTopTrader) -> Result<Self, ConversionError>
Performs the conversion.
Auto Trait Implementations§
impl Freeze for PageResponseTopTrader
impl RefUnwindSafe for PageResponseTopTrader
impl Send for PageResponseTopTrader
impl Sync for PageResponseTopTrader
impl Unpin for PageResponseTopTrader
impl UnsafeUnpin for PageResponseTopTrader
impl UnwindSafe for PageResponseTopTrader
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