jira_api_v2/models/screenable_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/// ScreenableTab : A screen tab.
15#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
16pub struct ScreenableTab {
17 /// The ID of the screen tab.
18 #[serde(rename = "id", skip_serializing_if = "Option::is_none")]
19 pub id: Option<i64>,
20 /// The name of the screen tab. The maximum length is 255 characters.
21 #[serde(rename = "name")]
22 pub name: String,
23}
24
25impl ScreenableTab {
26 /// A screen tab.
27 pub fn new(name: String) -> ScreenableTab {
28 ScreenableTab {
29 id: None,
30 name,
31 }
32 }
33}
34