jira_api_v2/models/
remote_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/// RemoteIssueLink : Details of an issue remote link.
15#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
16pub struct RemoteIssueLink {
17    /// The ID of the link.
18    #[serde(rename = "id", skip_serializing_if = "Option::is_none")]
19    pub id: Option<i64>,
20    /// The URL of the link.
21    #[serde(rename = "self", skip_serializing_if = "Option::is_none")]
22    pub param_self: Option<String>,
23    /// The global ID of the link, such as the ID of the item on the remote system.
24    #[serde(rename = "globalId", skip_serializing_if = "Option::is_none")]
25    pub global_id: Option<String>,
26    /// Details of the remote application the linked item is in.
27    #[serde(rename = "application", skip_serializing_if = "Option::is_none")]
28    pub application: Option<models::Application>,
29    /// Description of the relationship between the issue and the linked item.
30    #[serde(rename = "relationship", skip_serializing_if = "Option::is_none")]
31    pub relationship: Option<String>,
32    /// Details of the item linked to.
33    #[serde(rename = "object", skip_serializing_if = "Option::is_none")]
34    pub object: Option<models::RemoteObject>,
35}
36
37impl RemoteIssueLink {
38    /// Details of an issue remote link.
39    pub fn new() -> RemoteIssueLink {
40        RemoteIssueLink {
41            id: None,
42            param_self: None,
43            global_id: None,
44            application: None,
45            relationship: None,
46            object: None,
47        }
48    }
49}
50