jira_api_v2/models/
changelog.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/// Changelog : A changelog.
15#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
16pub struct Changelog {
17    /// The ID of the changelog.
18    #[serde(rename = "id", skip_serializing_if = "Option::is_none")]
19    pub id: Option<String>,
20    /// The user who made the change.
21    #[serde(rename = "author", skip_serializing_if = "Option::is_none")]
22    pub author: Option<Box<models::UserDetails>>,
23    /// The date on which the change took place.
24    #[serde(rename = "created", skip_serializing_if = "Option::is_none")]
25    pub created: Option<String>,
26    /// The list of items changed.
27    #[serde(rename = "items", skip_serializing_if = "Option::is_none")]
28    pub items: Option<Vec<models::ChangeDetails>>,
29    /// The history metadata associated with the changed.
30    #[serde(rename = "historyMetadata", skip_serializing_if = "Option::is_none")]
31    pub history_metadata: Option<models::HistoryMetadata>,
32}
33
34impl Changelog {
35    /// A changelog.
36    pub fn new() -> Changelog {
37        Changelog {
38            id: None,
39            author: None,
40            created: None,
41            items: None,
42            history_metadata: None,
43        }
44    }
45}
46