jira_api_v2/models/
dashboard.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/// Dashboard : Details of a dashboard.
15#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
16pub struct Dashboard {
17    #[serde(rename = "description", skip_serializing_if = "Option::is_none")]
18    pub description: Option<String>,
19    /// The ID of the dashboard.
20    #[serde(rename = "id", skip_serializing_if = "Option::is_none")]
21    pub id: Option<String>,
22    /// Whether the dashboard is selected as a favorite by the user.
23    #[serde(rename = "isFavourite", skip_serializing_if = "Option::is_none")]
24    pub is_favourite: Option<bool>,
25    /// The name of the dashboard.
26    #[serde(rename = "name", skip_serializing_if = "Option::is_none")]
27    pub name: Option<String>,
28    /// The owner of the dashboard.
29    #[serde(rename = "owner", skip_serializing_if = "Option::is_none")]
30    pub owner: Option<Box<models::UserBean>>,
31    /// The number of users who have this dashboard as a favorite.
32    #[serde(rename = "popularity", skip_serializing_if = "Option::is_none")]
33    pub popularity: Option<i64>,
34    /// The rank of this dashboard.
35    #[serde(rename = "rank", skip_serializing_if = "Option::is_none")]
36    pub rank: Option<i32>,
37    /// The URL of these dashboard details.
38    #[serde(rename = "self", skip_serializing_if = "Option::is_none")]
39    pub param_self: Option<String>,
40    /// The details of any view share permissions for the dashboard.
41    #[serde(rename = "sharePermissions", skip_serializing_if = "Option::is_none")]
42    pub share_permissions: Option<Vec<models::SharePermission>>,
43    /// The details of any edit share permissions for the dashboard.
44    #[serde(rename = "editPermissions", skip_serializing_if = "Option::is_none")]
45    pub edit_permissions: Option<Vec<models::SharePermission>>,
46    /// The URL of the dashboard.
47    #[serde(rename = "view", skip_serializing_if = "Option::is_none")]
48    pub view: Option<String>,
49}
50
51impl Dashboard {
52    /// Details of a dashboard.
53    pub fn new() -> Dashboard {
54        Dashboard {
55            description: None,
56            id: None,
57            is_favourite: None,
58            name: None,
59            owner: None,
60            popularity: None,
61            rank: None,
62            param_self: None,
63            share_permissions: None,
64            edit_permissions: None,
65            view: None,
66        }
67    }
68}
69