jira_api_v2/models/
issue_link.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/// IssueLink : Details of a link between issues.
15#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
16pub struct IssueLink {
17    /// The ID of the issue link.
18    #[serde(rename = "id", skip_serializing_if = "Option::is_none")]
19    pub id: Option<String>,
20    /// The URL of the issue link.
21    #[serde(rename = "self", skip_serializing_if = "Option::is_none")]
22    pub param_self: Option<String>,
23    /// The type of link between the issues.
24    #[serde(rename = "type")]
25    pub r#type: Box<models::IssueLinkType>,
26    /// The issue the link joins to.
27    #[serde(rename = "inwardIssue")]
28    pub inward_issue: Box<models::LinkedIssue>,
29    /// The issue the link originates from.
30    #[serde(rename = "outwardIssue")]
31    pub outward_issue: Box<models::LinkedIssue>,
32}
33
34impl IssueLink {
35    /// Details of a link between issues.
36    pub fn new(r#type: models::IssueLinkType, inward_issue: models::LinkedIssue, outward_issue: models::LinkedIssue) -> IssueLink {
37        IssueLink {
38            id: None,
39            param_self: None,
40            r#type: Box::new(r#type),
41            inward_issue: Box::new(inward_issue),
42            outward_issue: Box::new(outward_issue),
43        }
44    }
45}
46