jira_api_v2/models/
remote_object.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/// RemoteObject : The linked item.
15#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
16pub struct RemoteObject {
17    /// The URL of the item.
18    #[serde(rename = "url")]
19    pub url: String,
20    /// The title of the item.
21    #[serde(rename = "title")]
22    pub title: String,
23    /// The summary details of the item.
24    #[serde(rename = "summary", skip_serializing_if = "Option::is_none")]
25    pub summary: Option<String>,
26    /// Details of the icon for the item. If no icon is defined, the default link icon is used in Jira.
27    #[serde(rename = "icon", skip_serializing_if = "Option::is_none")]
28    pub icon: Option<models::Icon>,
29    /// The status of the item.
30    #[serde(rename = "status", skip_serializing_if = "Option::is_none")]
31    pub status: Option<models::Status>,
32}
33
34impl RemoteObject {
35    /// The linked item.
36    pub fn new(url: String, title: String) -> RemoteObject {
37        RemoteObject {
38            url,
39            title,
40            summary: None,
41            icon: None,
42            status: None,
43        }
44    }
45}
46