jira_api_v2/models/
page_of_comments.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
11use crate::models;
12use serde::{Deserialize, Serialize};
13
14/// PageOfComments : A page of comments.
15#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
16pub struct PageOfComments {
17    /// The index of the first item returned.
18    #[serde(rename = "startAt", skip_serializing_if = "Option::is_none")]
19    pub start_at: Option<i64>,
20    /// The maximum number of items that could be returned.
21    #[serde(rename = "maxResults", skip_serializing_if = "Option::is_none")]
22    pub max_results: Option<i32>,
23    /// The number of items returned.
24    #[serde(rename = "total", skip_serializing_if = "Option::is_none")]
25    pub total: Option<i64>,
26    /// The list of comments.
27    #[serde(rename = "comments", skip_serializing_if = "Option::is_none")]
28    pub comments: Option<Vec<models::Comment>>,
29}
30
31impl PageOfComments {
32    /// A page of comments.
33    pub fn new() -> PageOfComments {
34        PageOfComments {
35            start_at: None,
36            max_results: None,
37            total: None,
38            comments: None,
39        }
40    }
41}
42