jira_api_v2/models/
screen_with_tab.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/// ScreenWithTab : A screen with tab details.
15#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
16pub struct ScreenWithTab {
17    /// The ID of the screen.
18    #[serde(rename = "id", skip_serializing_if = "Option::is_none")]
19    pub id: Option<i64>,
20    /// The name of the screen.
21    #[serde(rename = "name", skip_serializing_if = "Option::is_none")]
22    pub name: Option<String>,
23    /// The description of the screen.
24    #[serde(rename = "description", skip_serializing_if = "Option::is_none")]
25    pub description: Option<String>,
26    /// The scope of the screen.
27    #[serde(rename = "scope", skip_serializing_if = "Option::is_none")]
28    pub scope: Option<models::Scope>,
29    /// The tab for the screen
30    #[serde(rename = "tab", skip_serializing_if = "Option::is_none")]
31    pub tab: Option<Box<models::ScreenableTab>>,
32}
33
34impl ScreenWithTab {
35    /// A screen with tab details.
36    pub fn new() -> ScreenWithTab {
37        ScreenWithTab {
38            id: None,
39            name: None,
40            description: None,
41            scope: None,
42            tab: None,
43        }
44    }
45}
46