figma_api/models/response_pagination.rs
1/*
2 * Figma API
3 *
4 * This is the OpenAPI specification for the [Figma REST API](https://www.figma.com/developers/api). Note: we are releasing the OpenAPI specification as a beta given the large surface area and complexity of the REST API. If you notice any inaccuracies with the specification, please [file an issue](https://github.com/figma/rest-api-spec/issues).
5 *
6 * The version of the OpenAPI document: 0.31.0
7 * Contact: support@figma.com
8 * Generated by: https://openapi-generator.tech
9 */
10
11use crate::models;
12use serde::{Deserialize, Serialize};
13
14/// ResponsePagination : If pagination is needed due to the length of the response, identifies the next and previous pages.
15#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
16pub struct ResponsePagination {
17 /// A URL that calls the previous page of the response.
18 #[serde(rename = "prev_page", skip_serializing_if = "Option::is_none")]
19 pub prev_page: Option<String>,
20 /// A URL that calls the next page of the response.
21 #[serde(rename = "next_page", skip_serializing_if = "Option::is_none")]
22 pub next_page: Option<String>,
23}
24
25impl ResponsePagination {
26 /// If pagination is needed due to the length of the response, identifies the next and previous pages.
27 pub fn new() -> ResponsePagination {
28 ResponsePagination {
29 prev_page: None,
30 next_page: None,
31 }
32 }
33}
34