camunda_client/models/
multi_form_variable_binary_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 MultiFormVariableBinaryDto {
16    /// The binary data to be set. For File variables, this multipart can contain the filename, binary value and MIME type of the file variable to be set Only the filename is mandatory.
17    #[serde(rename = "data", skip_serializing_if = "Option::is_none")]
18    pub data: Option<std::path::PathBuf>,
19    /// The name of the variable type. Either Bytes for a byte array variable or File for a file variable.
20    #[serde(rename = "valueType", skip_serializing_if = "Option::is_none")]
21    pub value_type: Option<ValueType>,
22}
23
24impl MultiFormVariableBinaryDto {
25    pub fn new() -> MultiFormVariableBinaryDto {
26        MultiFormVariableBinaryDto {
27            data: None,
28            value_type: None,
29        }
30    }
31}
32
33/// The name of the variable type. Either Bytes for a byte array variable or File for a file variable.
34#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)]
35pub enum ValueType {
36    #[serde(rename = "Bytes")]
37    Bytes,
38    #[serde(rename = "File")]
39    File,
40}
41