jira/gen/models/
page_bean_comment.rs

1/*
2 * The Jira Cloud platform REST API
3 *
4 * Jira Cloud platform REST API documentation
5 *
6 * The version of the OpenAPI document: 1001.0.0-SNAPSHOT
7 * Contact: ecosystem@atlassian.com
8 * Generated by: https://openapi-generator.tech
9 */
10
11/// PageBeanComment : A page of items.
12
13#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)]
14pub struct PageBeanComment {
15    /// The URL of the page.
16    #[serde(rename = "self", skip_serializing_if = "Option::is_none")]
17    pub _self: Option<String>,
18    /// If there is another page of results, the URL of the next page.
19    #[serde(rename = "nextPage", skip_serializing_if = "Option::is_none")]
20    pub next_page: Option<String>,
21    /// The maximum number of items that could be returned.
22    #[serde(rename = "maxResults", skip_serializing_if = "Option::is_none")]
23    pub max_results: Option<i32>,
24    /// The index of the first item returned.
25    #[serde(rename = "startAt", skip_serializing_if = "Option::is_none")]
26    pub start_at: Option<i64>,
27    /// The number of items returned.
28    #[serde(rename = "total", skip_serializing_if = "Option::is_none")]
29    pub total: Option<i64>,
30    /// Whether this is the last page.
31    #[serde(rename = "isLast", skip_serializing_if = "Option::is_none")]
32    pub is_last: Option<bool>,
33    /// The list of items.
34    #[serde(rename = "values", skip_serializing_if = "Option::is_none")]
35    pub values: Option<Vec<crate::gen::models::Comment>>,
36}
37
38impl PageBeanComment {
39    /// A page of items.
40    pub fn new() -> PageBeanComment {
41        PageBeanComment {
42            _self: None,
43            next_page: None,
44            max_results: None,
45            start_at: None,
46            total: None,
47            is_last: None,
48            values: None,
49        }
50    }
51}