amazon_spapi/models/data_kiosk_2023_11_15/
query_pagination.rs

1/*
2 * Selling Partner API for Data Kiosk
3 *
4 * The Selling Partner API for Data Kiosk lets you submit GraphQL queries from a variety of schemas to help selling partners manage their businesses.
5 *
6 * The version of the OpenAPI document: 2023-11-15
7 * 
8 * Generated by: https://openapi-generator.tech
9 */
10
11use crate::models;
12use serde::{Deserialize, Serialize};
13
14/// QueryPagination : When a query produces results that are not included in the data document, pagination occurs. This means the results are divided into pages. To retrieve the next page, you must pass a `CreateQuerySpecification` object with `paginationToken` set to this object's `nextToken` and with `query` set to this object's `query` in the subsequent `createQuery` request. When there are no more pages to fetch, the `nextToken` field will be absent.
15#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
16pub struct QueryPagination {
17    /// A token that can be used to fetch the next page of results.
18    #[serde(rename = "nextToken", skip_serializing_if = "Option::is_none")]
19    pub next_token: Option<String>,
20}
21
22impl QueryPagination {
23    /// When a query produces results that are not included in the data document, pagination occurs. This means the results are divided into pages. To retrieve the next page, you must pass a `CreateQuerySpecification` object with `paginationToken` set to this object's `nextToken` and with `query` set to this object's `query` in the subsequent `createQuery` request. When there are no more pages to fetch, the `nextToken` field will be absent.
24    pub fn new() -> QueryPagination {
25        QueryPagination {
26            next_token: None,
27        }
28    }
29}
30