camunda_client/models/
complete_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 CompleteTaskDto {
16    /// A JSON object containing variable key-value pairs.
17    #[serde(rename = "variables", skip_serializing_if = "Option::is_none")]
18    pub variables: Option<::std::collections::HashMap<String, crate::models::VariableValueDto>>,
19    /// Indicates whether the response should contain the process variables or not. The default is `false` with a response code of `204`. If set to `true` the response contains the process variables and has a response code of `200`. If the task is not associated with a process instance (e.g. if it's part of a case instance) no variables will be returned.
20    #[serde(rename = "withVariablesInReturn", skip_serializing_if = "Option::is_none")]
21    pub with_variables_in_return: Option<bool>,
22}
23
24impl CompleteTaskDto {
25    pub fn new() -> CompleteTaskDto {
26        CompleteTaskDto {
27            variables: None,
28            with_variables_in_return: None,
29        }
30    }
31}
32
33