jira_api_v2/models/
linked_issue.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/// LinkedIssue : The ID or key of a linked issue.
15#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
16pub struct LinkedIssue {
17    /// The ID of an issue. Required if `key` isn't provided.
18    #[serde(rename = "id", skip_serializing_if = "Option::is_none")]
19    pub id: Option<String>,
20    /// The key of an issue. Required if `id` isn't provided.
21    #[serde(rename = "key", skip_serializing_if = "Option::is_none")]
22    pub key: Option<String>,
23    /// The URL of the issue.
24    #[serde(rename = "self", skip_serializing_if = "Option::is_none")]
25    pub param_self: Option<String>,
26    /// The fields associated with the issue.
27    #[serde(rename = "fields", skip_serializing_if = "Option::is_none")]
28    pub fields: Option<Box<models::Fields>>,
29}
30
31impl LinkedIssue {
32    /// The ID or key of a linked issue.
33    pub fn new() -> LinkedIssue {
34        LinkedIssue {
35            id: None,
36            key: None,
37            param_self: None,
38            fields: None,
39        }
40    }
41}
42