amazon_spapi/models/fba_inventory/pagination.rs
1/*
2 * Selling Partner API for FBA Inventory
3 *
4 * The Selling Partner API for FBA Inventory lets you programmatically retrieve information about inventory in Amazon's fulfillment network.
5 *
6 * The version of the OpenAPI document: v1
7 *
8 * Generated by: https://openapi-generator.tech
9 */
10
11use crate::models;
12use serde::{Deserialize, Serialize};
13
14/// Pagination : The process of returning the results to a request in batches of a defined size called pages. This is done to exercise some control over result size and overall throughput. It's a form of traffic management.
15#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
16pub struct Pagination {
17 /// A generated string used to retrieve the next page of the result. If nextToken is returned, pass the value of nextToken to the next request. If nextToken is not returned, there are no more items to return.
18 #[serde(rename = "nextToken", skip_serializing_if = "Option::is_none")]
19 pub next_token: Option<String>,
20}
21
22impl Pagination {
23 /// The process of returning the results to a request in batches of a defined size called pages. This is done to exercise some control over result size and overall throughput. It's a form of traffic management.
24 pub fn new() -> Pagination {
25 Pagination {
26 next_token: None,
27 }
28 }
29}
30