jira_api_v2/models/
history_metadata_participant.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/// HistoryMetadataParticipant : Details of user or system associated with a issue history metadata item.
15#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
16pub struct HistoryMetadataParticipant {
17    /// The ID of the user or system associated with a history record.
18    #[serde(rename = "id", skip_serializing_if = "Option::is_none")]
19    pub id: Option<String>,
20    /// The display name of the user or system associated with a history record.
21    #[serde(rename = "displayName", skip_serializing_if = "Option::is_none")]
22    pub display_name: Option<String>,
23    /// The key of the display name of the user or system associated with a history record.
24    #[serde(rename = "displayNameKey", skip_serializing_if = "Option::is_none")]
25    pub display_name_key: Option<String>,
26    /// The type of the user or system associated with a history record.
27    #[serde(rename = "type", skip_serializing_if = "Option::is_none")]
28    pub r#type: Option<String>,
29    /// The URL to an avatar for the user or system associated with a history record.
30    #[serde(rename = "avatarUrl", skip_serializing_if = "Option::is_none")]
31    pub avatar_url: Option<String>,
32    /// The URL of the user or system associated with a history record.
33    #[serde(rename = "url", skip_serializing_if = "Option::is_none")]
34    pub url: Option<String>,
35}
36
37impl HistoryMetadataParticipant {
38    /// Details of user or system associated with a issue history metadata item.
39    pub fn new() -> HistoryMetadataParticipant {
40        HistoryMetadataParticipant {
41            id: None,
42            display_name: None,
43            display_name_key: None,
44            r#type: None,
45            avatar_url: None,
46            url: None,
47        }
48    }
49}
50