pub struct TokenPage {
pub data: Vec<Token>,
pub end_cursor: Option<String>,
pub has_next: Option<bool>,
pub has_prev: Option<bool>,
pub start_cursor: Option<String>,
}Expand description
Token search result page — mirrors TS TokenPage.
JSON schema
{
"description": "Token search result page — mirrors TS `TokenPage`.",
"type": "object",
"required": [
"data"
],
"properties": {
"data": {
"description": "List of tokens",
"type": "array",
"items": {
"$ref": "#/components/schemas/Token"
}
},
"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<Token>List of tokens
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§
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 UnsafeUnpin 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