jira_api_v2/models/
page_of_worklogs.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/// PageOfWorklogs : Paginated list of worklog details
15#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
16pub struct PageOfWorklogs {
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    /// List of worklogs.
27    #[serde(rename = "worklogs", skip_serializing_if = "Option::is_none")]
28    pub worklogs: Option<Vec<models::Worklog>>,
29}
30
31impl PageOfWorklogs {
32    /// Paginated list of worklog details
33    pub fn new() -> PageOfWorklogs {
34        PageOfWorklogs {
35            start_at: None,
36            max_results: None,
37            total: None,
38            worklogs: None,
39        }
40    }
41}
42