camunda_client/models/
comment_dto_all_of.rs

1/*
2 * Camunda BPM REST API
3 *
4 * OpenApi Spec for Camunda BPM REST API.
5 *
6 * The version of the OpenAPI document: 7.13.0
7 * 
8 * Generated by: https://openapi-generator.tech
9 */
10
11
12
13
14#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)]
15pub struct CommentDtoAllOf {
16    /// The id of the task comment.
17    #[serde(rename = "id", skip_serializing_if = "Option::is_none")]
18    pub id: Option<String>,
19    /// The id of the user who created the comment.
20    #[serde(rename = "userId", skip_serializing_if = "Option::is_none")]
21    pub user_id: Option<String>,
22    /// The id of the task to which the comment belongs.
23    #[serde(rename = "taskId", skip_serializing_if = "Option::is_none")]
24    pub task_id: Option<String>,
25    /// The time when the comment was created. [Default format]($(docsUrl)/reference/rest/overview/date-format/) `yyyy-MM-dd'T'HH:mm:ss.SSSZ`.
26    #[serde(rename = "time", skip_serializing_if = "Option::is_none")]
27    pub time: Option<String>,
28    /// The content of the comment.
29    #[serde(rename = "message", skip_serializing_if = "Option::is_none")]
30    pub message: Option<String>,
31    /// The time after which the comment should be removed by the History Cleanup job. [Default format]($(docsUrl)/reference/rest/overview/date-format/) `yyyy-MM-dd'T'HH:mm:ss.SSSZ`.
32    #[serde(rename = "removalTime", skip_serializing_if = "Option::is_none")]
33    pub removal_time: Option<String>,
34    /// The process instance id of the root process instance that initiated the process containing the task.
35    #[serde(rename = "rootProcessInstanceId", skip_serializing_if = "Option::is_none")]
36    pub root_process_instance_id: Option<String>,
37}
38
39impl CommentDtoAllOf {
40    pub fn new() -> CommentDtoAllOf {
41        CommentDtoAllOf {
42            id: None,
43            user_id: None,
44            task_id: None,
45            time: None,
46            message: None,
47            removal_time: None,
48            root_process_instance_id: None,
49        }
50    }
51}
52
53