hab_rs_api_client/models/
transformation.rs

1/*
2 * openHAB REST API
3 *
4 * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
5 *
6 * The version of the OpenAPI document: 8
7 *
8 * Generated by: https://openapi-generator.tech
9 */
10
11use crate::models;
12use serde::{Deserialize, Serialize};
13
14#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
15pub struct Transformation {
16    #[serde(rename = "configuration", skip_serializing_if = "Option::is_none")]
17    pub configuration: Option<std::collections::HashMap<String, String>>,
18    #[serde(rename = "label", skip_serializing_if = "Option::is_none")]
19    pub label: Option<String>,
20    #[serde(rename = "type", skip_serializing_if = "Option::is_none")]
21    pub r#type: Option<String>,
22    #[serde(rename = "uid", skip_serializing_if = "Option::is_none")]
23    pub uid: Option<String>,
24}
25
26impl Transformation {
27    pub fn new() -> Transformation {
28        Transformation {
29            configuration: None,
30            label: None,
31            r#type: None,
32            uid: None,
33        }
34    }
35}