jira_api_v2/models/application.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/// Application : The application the linked item is in.
15#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
16pub struct Application {
17 /// The name-spaced type of the application, used by registered rendering apps.
18 #[serde(rename = "type", skip_serializing_if = "Option::is_none")]
19 pub r#type: Option<String>,
20 /// The name of the application. Used in conjunction with the (remote) object icon title to display a tooltip for the link's icon. The tooltip takes the format \"\\[application name\\] icon title\". Blank items are excluded from the tooltip title. If both items are blank, the icon tooltop displays as \"Web Link\". Grouping and sorting of links may place links without an application name last.
21 #[serde(rename = "name", skip_serializing_if = "Option::is_none")]
22 pub name: Option<String>,
23}
24
25impl Application {
26 /// The application the linked item is in.
27 pub fn new() -> Application {
28 Application {
29 r#type: None,
30 name: None,
31 }
32 }
33}
34