camunda_client/models/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 VariableValueDto {
16 /// The variable's value. Value differs depending on the variable's type and on the deserializeValues parameter.
17 #[serde(rename = "value", skip_serializing_if = "Option::is_none")]
18 pub value: Option<serde_json::Value>,
19 /// The value type of the variable.
20 #[serde(rename = "type", skip_serializing_if = "Option::is_none")]
21 pub _type: Option<String>,
22 /// 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.
23 #[serde(rename = "valueInfo", skip_serializing_if = "Option::is_none")]
24 pub value_info: Option<::std::collections::HashMap<String, serde_json::Value>>,
25}
26
27impl VariableValueDto {
28 pub fn new() -> VariableValueDto {
29 VariableValueDto {
30 value: None,
31 _type: None,
32 value_info: None,
33 }
34 }
35}
36
37