jira_api_v2/models/
changed_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/// ChangedWorklogs : List of changed worklogs.
15#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
16pub struct ChangedWorklogs {
17    /// Changed worklog list.
18    #[serde(rename = "values", skip_serializing_if = "Option::is_none")]
19    pub values: Option<Vec<models::ChangedWorklog>>,
20    /// The datetime of the first worklog item in the list.
21    #[serde(rename = "since", skip_serializing_if = "Option::is_none")]
22    pub since: Option<i64>,
23    /// The datetime of the last worklog item in the list.
24    #[serde(rename = "until", skip_serializing_if = "Option::is_none")]
25    pub until: Option<i64>,
26    /// The URL of this changed worklogs list.
27    #[serde(rename = "self", skip_serializing_if = "Option::is_none")]
28    pub param_self: Option<String>,
29    /// The URL of the next list of changed worklogs.
30    #[serde(rename = "nextPage", skip_serializing_if = "Option::is_none")]
31    pub next_page: Option<String>,
32    #[serde(rename = "lastPage", skip_serializing_if = "Option::is_none")]
33    pub last_page: Option<bool>,
34}
35
36impl ChangedWorklogs {
37    /// List of changed worklogs.
38    pub fn new() -> ChangedWorklogs {
39        ChangedWorklogs {
40            values: None,
41            since: None,
42            until: None,
43            param_self: None,
44            next_page: None,
45            last_page: None,
46        }
47    }
48}
49