jira_api_v2/models/icon.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/// Icon : An icon. If no icon is defined: * for a status icon, no status icon displays in Jira. * for the remote object icon, the default link icon displays in Jira.
15#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
16pub struct Icon {
17 /// The URL of an icon that displays at 16x16 pixel in Jira.
18 #[serde(rename = "url16x16", skip_serializing_if = "Option::is_none")]
19 pub url16x16: Option<String>,
20 /// The title of the icon. This is used as follows: * For a status icon it is used as a tooltip on the icon. If not set, the status icon doesn't display a tooltip in Jira. * For the remote object icon it is used in conjunction with the application name to display a tooltip for the link's icon. The tooltip takes the format \"\\[application name\\] icon title\". Blank itemsare excluded from the tooltip title. If both items are blank, the icon tooltop displays as \"Web Link\".
21 #[serde(rename = "title", skip_serializing_if = "Option::is_none")]
22 pub title: Option<String>,
23 /// The URL of the tooltip, used only for a status icon. If not set, the status icon in Jira is not clickable.
24 #[serde(rename = "link", skip_serializing_if = "Option::is_none")]
25 pub link: Option<String>,
26}
27
28impl Icon {
29 /// An icon. If no icon is defined: * for a status icon, no status icon displays in Jira. * for the remote object icon, the default link icon displays in Jira.
30 pub fn new() -> Icon {
31 Icon {
32 url16x16: None,
33 title: None,
34 link: None,
35 }
36 }
37}
38