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