camunda_client/models/
task_dto.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 TaskDto {
16    /// The task id.
17    #[serde(rename = "id", skip_serializing_if = "Option::is_none")]
18    pub id: Option<String>,
19    /// The task name.
20    #[serde(rename = "name", skip_serializing_if = "Option::is_none")]
21    pub name: Option<String>,
22    /// The assignee's id.
23    #[serde(rename = "assignee", skip_serializing_if = "Option::is_none")]
24    pub assignee: Option<String>,
25    /// The owner's id.
26    #[serde(rename = "owner", skip_serializing_if = "Option::is_none")]
27    pub owner: Option<String>,
28    /// The date the task was created on. [Default format](https://docs.camunda.org/manual/7.13/reference/rest/overview/date-format/) `yyyy-MM-dd'T'HH:mm:ss.SSSZ`.
29    #[serde(rename = "created", skip_serializing_if = "Option::is_none")]
30    pub created: Option<String>,
31    /// The task's due date. [Default format](https://docs.camunda.org/manual/7.13/reference/rest/overview/date-format/) `yyyy-MM-dd'T'HH:mm:ss.SSSZ`.
32    #[serde(rename = "due", skip_serializing_if = "Option::is_none")]
33    pub due: Option<String>,
34    /// The follow-up date for the task. [Default format](https://docs.camunda.org/manual/7.13/reference/rest/overview/date-format/) `yyyy-MM-dd'T'HH:mm:ss.SSSZ`.
35    #[serde(rename = "followUp", skip_serializing_if = "Option::is_none")]
36    pub follow_up: Option<String>,
37    /// The task's delegation state. Possible values are `PENDING` and `RESOLVED`.
38    #[serde(rename = "delegationState", skip_serializing_if = "Option::is_none")]
39    pub delegation_state: Option<DelegationState>,
40    /// The task's description.
41    #[serde(rename = "description", skip_serializing_if = "Option::is_none")]
42    pub description: Option<String>,
43    /// The id of the execution the task belongs to.
44    #[serde(rename = "executionId", skip_serializing_if = "Option::is_none")]
45    pub execution_id: Option<String>,
46    /// The id the parent task, if this task is a subtask.
47    #[serde(rename = "parentTaskId", skip_serializing_if = "Option::is_none")]
48    pub parent_task_id: Option<String>,
49    /// The task's priority.
50    #[serde(rename = "priority", skip_serializing_if = "Option::is_none")]
51    pub priority: Option<i32>,
52    /// The id of the process definition the task belongs to.
53    #[serde(rename = "processDefinitionId", skip_serializing_if = "Option::is_none")]
54    pub process_definition_id: Option<String>,
55    /// The id of the process instance the task belongs to.
56    #[serde(rename = "processInstanceId", skip_serializing_if = "Option::is_none")]
57    pub process_instance_id: Option<String>,
58    /// The id of the case execution the task belongs to.
59    #[serde(rename = "caseExecutionId", skip_serializing_if = "Option::is_none")]
60    pub case_execution_id: Option<String>,
61    /// The id of the case definition the task belongs to.
62    #[serde(rename = "caseDefinitionId", skip_serializing_if = "Option::is_none")]
63    pub case_definition_id: Option<String>,
64    /// The id of the case instance the task belongs to.
65    #[serde(rename = "caseInstanceId", skip_serializing_if = "Option::is_none")]
66    pub case_instance_id: Option<String>,
67    /// The task's key.
68    #[serde(rename = "taskDefinitionKey", skip_serializing_if = "Option::is_none")]
69    pub task_definition_key: Option<String>,
70    /// Whether the task belongs to a process instance that is suspended.
71    #[serde(rename = "suspended", skip_serializing_if = "Option::is_none")]
72    pub suspended: Option<bool>,
73    /// If not `null`, the form key for the task.
74    #[serde(rename = "formKey", skip_serializing_if = "Option::is_none")]
75    pub form_key: Option<String>,
76    /// If not `null`, the tenant id of the task.
77    #[serde(rename = "tenantId", skip_serializing_if = "Option::is_none")]
78    pub tenant_id: Option<String>,
79}
80
81impl TaskDto {
82    pub fn new() -> TaskDto {
83        TaskDto {
84            id: None,
85            name: None,
86            assignee: None,
87            owner: None,
88            created: None,
89            due: None,
90            follow_up: None,
91            delegation_state: None,
92            description: None,
93            execution_id: None,
94            parent_task_id: None,
95            priority: None,
96            process_definition_id: None,
97            process_instance_id: None,
98            case_execution_id: None,
99            case_definition_id: None,
100            case_instance_id: None,
101            task_definition_key: None,
102            suspended: None,
103            form_key: None,
104            tenant_id: None,
105        }
106    }
107}
108
109/// The task's delegation state. Possible values are `PENDING` and `RESOLVED`.
110#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)]
111pub enum DelegationState {
112    #[serde(rename = "PENDING")]
113    PENDING,
114    #[serde(rename = "RESOLVED")]
115    RESOLVED,
116}
117