jira_api_v2/models/
page_of_dashboards.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/// PageOfDashboards : A page containing dashboard details.
15#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
16pub struct PageOfDashboards {
17    /// The index of the first item returned on the page.
18    #[serde(rename = "startAt", skip_serializing_if = "Option::is_none")]
19    pub start_at: Option<i32>,
20    /// The maximum number of results that could be on the page.
21    #[serde(rename = "maxResults", skip_serializing_if = "Option::is_none")]
22    pub max_results: Option<i32>,
23    /// The number of results on the page.
24    #[serde(rename = "total", skip_serializing_if = "Option::is_none")]
25    pub total: Option<i32>,
26    /// The URL of the previous page of results, if any.
27    #[serde(rename = "prev", skip_serializing_if = "Option::is_none")]
28    pub prev: Option<String>,
29    /// The URL of the next page of results, if any.
30    #[serde(rename = "next", skip_serializing_if = "Option::is_none")]
31    pub next: Option<String>,
32    /// List of dashboards.
33    #[serde(rename = "dashboards", skip_serializing_if = "Option::is_none")]
34    pub dashboards: Option<Vec<models::Dashboard>>,
35}
36
37impl PageOfDashboards {
38    /// A page containing dashboard details.
39    pub fn new() -> PageOfDashboards {
40        PageOfDashboards {
41            start_at: None,
42            max_results: None,
43            total: None,
44            prev: None,
45            next: None,
46            dashboards: None,
47        }
48    }
49}
50