jira_api_v2/models/
page_of_comments.rs1use crate::models;
12use serde::{Deserialize, Serialize};
13
14#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
16pub struct PageOfComments {
17 #[serde(rename = "startAt", skip_serializing_if = "Option::is_none")]
19 pub start_at: Option<i64>,
20 #[serde(rename = "maxResults", skip_serializing_if = "Option::is_none")]
22 pub max_results: Option<i32>,
23 #[serde(rename = "total", skip_serializing_if = "Option::is_none")]
25 pub total: Option<i64>,
26 #[serde(rename = "comments", skip_serializing_if = "Option::is_none")]
28 pub comments: Option<Vec<models::Comment>>,
29}
30
31impl PageOfComments {
32 pub fn new() -> PageOfComments {
34 PageOfComments {
35 start_at: None,
36 max_results: None,
37 total: None,
38 comments: None,
39 }
40 }
41}
42