camunda_client/models/trigger_variable_value_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 TriggerVariableValueDto {
16 /// Indicates whether the variable should be a local variable or not. If set to true, the variable becomes a local variable of the execution entering the target activity.
17 #[serde(rename = "local", skip_serializing_if = "Option::is_none")]
18 pub local: Option<bool>,
19 /// The variable's value. Value differs depending on the variable's type and on the deserializeValues parameter.
20 #[serde(rename = "value", skip_serializing_if = "Option::is_none")]
21 pub value: Option<serde_json::Value>,
22 /// The value type of the variable.
23 #[serde(rename = "type", skip_serializing_if = "Option::is_none")]
24 pub _type: Option<String>,
25 /// A JSON object containing additional, value-type-dependent properties. For serialized variables of type Object, the following properties can be provided: * `objectTypeName`: A string representation of the object's type name. * `serializationDataFormat`: The serialization format used to store the variable. For serialized variables of type File, the following properties can be provided: * `filename`: The name of the file. This is not the variable name but the name that will be used when downloading the file again. * `mimetype`: The MIME type of the file that is being uploaded. * `encoding`: The encoding of the file that is being uploaded.
26 #[serde(rename = "valueInfo", skip_serializing_if = "Option::is_none")]
27 pub value_info: Option<::std::collections::HashMap<String, serde_json::Value>>,
28}
29
30impl TriggerVariableValueDto {
31 pub fn new() -> TriggerVariableValueDto {
32 TriggerVariableValueDto {
33 local: None,
34 value: None,
35 _type: None,
36 value_info: None,
37 }
38 }
39}
40
41