jira_api_v2/models/
audit_record_bean.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/// AuditRecordBean : An audit record.
15#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
16pub struct AuditRecordBean {
17    /// The ID of the audit record.
18    #[serde(rename = "id", skip_serializing_if = "Option::is_none")]
19    pub id: Option<i64>,
20    /// The summary of the audit record.
21    #[serde(rename = "summary", skip_serializing_if = "Option::is_none")]
22    pub summary: Option<String>,
23    /// The URL of the computer where the creation of the audit record was initiated.
24    #[serde(rename = "remoteAddress", skip_serializing_if = "Option::is_none")]
25    pub remote_address: Option<String>,
26    /// Deprecated, use `authorAccountId` instead. The key of the user who created the audit record.
27    #[serde(rename = "authorKey", skip_serializing_if = "Option::is_none")]
28    pub author_key: Option<String>,
29    /// The date and time on which the audit record was created.
30    #[serde(rename = "created", skip_serializing_if = "Option::is_none")]
31    pub created: Option<String>,
32    /// The category of the audit record. For a list of these categories, see the help article [Auditing in Jira applications](https://confluence.atlassian.com/x/noXKM).
33    #[serde(rename = "category", skip_serializing_if = "Option::is_none")]
34    pub category: Option<String>,
35    /// The event the audit record originated from.
36    #[serde(rename = "eventSource", skip_serializing_if = "Option::is_none")]
37    pub event_source: Option<String>,
38    /// The description of the audit record.
39    #[serde(rename = "description", skip_serializing_if = "Option::is_none")]
40    pub description: Option<String>,
41    #[serde(rename = "objectItem", skip_serializing_if = "Option::is_none")]
42    pub object_item: Option<Box<models::AssociatedItemBean>>,
43    /// The list of values changed in the record event.
44    #[serde(rename = "changedValues", skip_serializing_if = "Option::is_none")]
45    pub changed_values: Option<Vec<models::ChangedValueBean>>,
46    /// The list of items associated with the changed record.
47    #[serde(rename = "associatedItems", skip_serializing_if = "Option::is_none")]
48    pub associated_items: Option<Vec<models::AssociatedItemBean>>,
49}
50
51impl AuditRecordBean {
52    /// An audit record.
53    pub fn new() -> AuditRecordBean {
54        AuditRecordBean {
55            id: None,
56            summary: None,
57            remote_address: None,
58            author_key: None,
59            created: None,
60            category: None,
61            event_source: None,
62            description: None,
63            object_item: None,
64            changed_values: None,
65            associated_items: None,
66        }
67    }
68}
69