jira/gen/models/
dashboard_details.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
11/// DashboardDetails : Details of a dashboard.
12
13#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)]
14pub struct DashboardDetails {
15    /// The name of the dashboard.
16    #[serde(rename = "name")]
17    pub name: String,
18    /// The description of the dashboard.
19    #[serde(rename = "description", skip_serializing_if = "Option::is_none")]
20    pub description: Option<String>,
21    /// The details of any share permissions for the dashboard.
22    #[serde(rename = "sharePermissions")]
23    pub share_permissions: Vec<crate::gen::models::SharePermission>,
24}
25
26impl DashboardDetails {
27    /// Details of a dashboard.
28    pub fn new(
29        name: String,
30        share_permissions: Vec<crate::gen::models::SharePermission>,
31    ) -> DashboardDetails {
32        DashboardDetails {
33            name,
34            description: None,
35            share_permissions,
36        }
37    }
38}