/*
 * The Jira Cloud platform REST API
 *
 * Jira Cloud platform REST API documentation
 *
 * The version of the OpenAPI document: 1001.0.0-SNAPSHOT-48dd1e2d75e7eac65741e465279d2700f927137d
 * Contact: ecosystem@atlassian.com
 * Generated by: https://openapi-generator.tech
 */

use crate::models;
use serde::{Deserialize, Serialize};

/// ChangedWorklogs : List of changed worklogs.
#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
pub struct ChangedWorklogs {
    #[serde(rename = "lastPage", skip_serializing_if = "Option::is_none")]
    pub last_page: Option<bool>,
    /// The URL of the next list of changed worklogs.
    #[serde(rename = "nextPage", skip_serializing_if = "Option::is_none")]
    pub next_page: Option<String>,
    /// The URL of this changed worklogs list.
    #[serde(rename = "self", skip_serializing_if = "Option::is_none")]
    pub param_self: Option<String>,
    /// The datetime of the first worklog item in the list.
    #[serde(rename = "since", skip_serializing_if = "Option::is_none")]
    pub since: Option<i64>,
    /// The datetime of the last worklog item in the list.
    #[serde(rename = "until", skip_serializing_if = "Option::is_none")]
    pub until: Option<i64>,
    /// Changed worklog list.
    #[serde(rename = "values", skip_serializing_if = "Option::is_none")]
    pub values: Option<Vec<models::ChangedWorklog>>,
}

impl ChangedWorklogs {
    /// List of changed worklogs.
    pub fn new() -> ChangedWorklogs {
        ChangedWorklogs {
            last_page: None,
            next_page: None,
            param_self: None,
            since: None,
            until: None,
            values: None,
        }
    }
}

