Skip to main content

openapi_service_fabric/models/
string_property_value.rs

1/*
2 * Service Fabric Client APIs
3 *
4 * Service Fabric REST Client APIs allows management of Service Fabric clusters, applications and services.
5 *
6 * The version of the OpenAPI document: 8.2
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 StringPropertyValue {
16    #[serde(rename = "Kind")]
17    pub kind: models::PropertyValueKind,
18    /// The data of the property value.
19    #[serde(rename = "Data")]
20    pub data: String,
21}
22
23impl StringPropertyValue {
24    pub fn new(kind: models::PropertyValueKind, data: String) -> StringPropertyValue {
25        StringPropertyValue { kind, data }
26    }
27}