jira_api_v2/models/
changed_worklog.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/// ChangedWorklog : Details of a changed worklog.
15#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
16pub struct ChangedWorklog {
17    /// The ID of the worklog.
18    #[serde(rename = "worklogId", skip_serializing_if = "Option::is_none")]
19    pub worklog_id: Option<i64>,
20    /// The datetime of the change.
21    #[serde(rename = "updatedTime", skip_serializing_if = "Option::is_none")]
22    pub updated_time: Option<i64>,
23    /// Details of properties associated with the change.
24    #[serde(rename = "properties", skip_serializing_if = "Option::is_none")]
25    pub properties: Option<Vec<models::EntityProperty>>,
26}
27
28impl ChangedWorklog {
29    /// Details of a changed worklog.
30    pub fn new() -> ChangedWorklog {
31        ChangedWorklog {
32            worklog_id: None,
33            updated_time: None,
34            properties: None,
35        }
36    }
37}
38