jira_api_v2/models/
history_metadata.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/// HistoryMetadata : Details of issue history metadata.
15#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
16pub struct HistoryMetadata {
17    /// The type of the history record.
18    #[serde(rename = "type", skip_serializing_if = "Option::is_none")]
19    pub r#type: Option<String>,
20    /// The description of the history record.
21    #[serde(rename = "description", skip_serializing_if = "Option::is_none")]
22    pub description: Option<String>,
23    /// The description key of the history record.
24    #[serde(rename = "descriptionKey", skip_serializing_if = "Option::is_none")]
25    pub description_key: Option<String>,
26    /// The activity described in the history record.
27    #[serde(rename = "activityDescription", skip_serializing_if = "Option::is_none")]
28    pub activity_description: Option<String>,
29    /// The key of the activity described in the history record.
30    #[serde(rename = "activityDescriptionKey", skip_serializing_if = "Option::is_none")]
31    pub activity_description_key: Option<String>,
32    /// The description of the email address associated the history record.
33    #[serde(rename = "emailDescription", skip_serializing_if = "Option::is_none")]
34    pub email_description: Option<String>,
35    /// The description key of the email address associated the history record.
36    #[serde(rename = "emailDescriptionKey", skip_serializing_if = "Option::is_none")]
37    pub email_description_key: Option<String>,
38    /// Details of the user whose action created the history record.
39    #[serde(rename = "actor", skip_serializing_if = "Option::is_none")]
40    pub actor: Option<models::HistoryMetadataParticipant>,
41    /// Details of the system that generated the history record.
42    #[serde(rename = "generator", skip_serializing_if = "Option::is_none")]
43    pub generator: Option<models::HistoryMetadataParticipant>,
44    /// Details of the cause that triggered the creation the history record.
45    #[serde(rename = "cause", skip_serializing_if = "Option::is_none")]
46    pub cause: Option<models::HistoryMetadataParticipant>,
47    /// Additional arbitrary information about the history record.
48    #[serde(rename = "extraData", skip_serializing_if = "Option::is_none")]
49    pub extra_data: Option<std::collections::HashMap<String, String>>,
50}
51
52impl HistoryMetadata {
53    /// Details of issue history metadata.
54    pub fn new() -> HistoryMetadata {
55        HistoryMetadata {
56            r#type: None,
57            description: None,
58            description_key: None,
59            activity_description: None,
60            activity_description_key: None,
61            email_description: None,
62            email_description_key: None,
63            actor: None,
64            generator: None,
65            cause: None,
66            extra_data: None,
67        }
68    }
69}
70