pub struct TokenPage {
pub counts_by_protocols: Map<String, Value>,
pub data: Vec<Token>,
pub end_cursor: Option<String>,
pub has_next: bool,
pub has_prev: bool,
pub start_cursor: Option<String>,
pub total: i64,
}Expand description
TokenPage
JSON schema
{
"type": "object",
"required": [
"data"
],
"properties": {
"countsByProtocols": {
"description": "DTO.TOKEN.PAGE.COUNTS_BY_PROTOCOLS",
"examples": [
{
"sushiswap": 300,
"uniswap": 500
}
],
"type": "object"
},
"data": {
"description": "DTO.TOKEN.PAGE.DATA",
"type": "array",
"items": {
"$ref": "#/components/schemas/Token"
}
},
"endCursor": {
"description": "DTO.PAGE.END_CURSOR",
"type": "string"
},
"hasNext": {
"description": "DTO.PAGE.HAS_NEXT",
"default": false,
"type": "boolean"
},
"hasPrev": {
"description": "DTO.PAGE.HAS_PREV",
"default": false,
"type": "boolean"
},
"startCursor": {
"description": "DTO.PAGE.START_CURSOR",
"type": "string"
},
"total": {
"description": "DTO.PAGE.TOTAL",
"default": 0,
"type": "integer",
"format": "int64"
}
}
}Fields§
§counts_by_protocols: Map<String, Value>DTO.TOKEN.PAGE.COUNTS_BY_PROTOCOLS
data: Vec<Token>DTO.TOKEN.PAGE.DATA
end_cursor: Option<String>DTO.PAGE.END_CURSOR
has_next: boolDTO.PAGE.HAS_NEXT
has_prev: boolDTO.PAGE.HAS_PREV
start_cursor: Option<String>DTO.PAGE.START_CURSOR
total: i64DTO.PAGE.TOTAL
Implementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for TokenPage
impl<'de> Deserialize<'de> for TokenPage
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
Auto Trait Implementations§
impl Freeze for TokenPage
impl RefUnwindSafe for TokenPage
impl Send for TokenPage
impl Sync for TokenPage
impl Unpin for TokenPage
impl UnwindSafe for TokenPage
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