jira_api_v2/models/
link_issue_request_json_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#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
15pub struct LinkIssueRequestJsonBean {
16    #[serde(rename = "type")]
17    pub r#type: Box<models::IssueLinkType>,
18    #[serde(rename = "inwardIssue")]
19    pub inward_issue: Box<models::LinkedIssue>,
20    #[serde(rename = "outwardIssue")]
21    pub outward_issue: Box<models::LinkedIssue>,
22    #[serde(rename = "comment", skip_serializing_if = "Option::is_none")]
23    pub comment: Option<models::Comment>,
24}
25
26impl LinkIssueRequestJsonBean {
27    pub fn new(r#type: models::IssueLinkType, inward_issue: models::LinkedIssue, outward_issue: models::LinkedIssue) -> LinkIssueRequestJsonBean {
28        LinkIssueRequestJsonBean {
29            r#type: Box::new(r#type),
30            inward_issue: Box::new(inward_issue),
31            outward_issue: Box::new(outward_issue),
32            comment: None,
33        }
34    }
35}
36