jira_api_v2/models/
remote_issue_link_request.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/// RemoteIssueLinkRequest : Details of a remote issue link.
15#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
16pub struct RemoteIssueLinkRequest {
17    /// An identifier for the remote item in the remote system. For example, the global ID for a remote item in Confluence would consist of the app ID and page ID, like this: `appId=456&pageId=123`.  Setting this field enables the remote issue link details to be updated or deleted using remote system and item details as the record identifier, rather than using the record's Jira ID.  The maximum length is 255 characters.
18    #[serde(rename = "globalId", skip_serializing_if = "Option::is_none")]
19    pub global_id: Option<String>,
20    /// Details of the remote application the linked item is in. For example, trello.
21    #[serde(rename = "application", skip_serializing_if = "Option::is_none")]
22    pub application: Option<models::Application>,
23    /// Description of the relationship between the issue and the linked item. If not set, the relationship description \"links to\" is used in Jira.
24    #[serde(rename = "relationship", skip_serializing_if = "Option::is_none")]
25    pub relationship: Option<String>,
26    /// Details of the item linked to.
27    #[serde(rename = "object")]
28    pub object: models::RemoteObject,
29}
30
31impl RemoteIssueLinkRequest {
32    /// Details of a remote issue link.
33    pub fn new(object: models::RemoteObject) -> RemoteIssueLinkRequest {
34        RemoteIssueLinkRequest {
35            global_id: None,
36            application: None,
37            relationship: None,
38            object,
39        }
40    }
41}
42