openapi_github/models/
custom_property_value.rs1use crate::models;
12use serde::{Deserialize, Serialize};
13
14#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
16pub struct CustomPropertyValue {
17 #[serde(rename = "property_name")]
19 pub property_name: String,
20 #[serde(rename = "value", deserialize_with = "Option::deserialize")]
21 pub value: Option<Box<models::CustomPropertyValueValue>>,
22}
23
24impl CustomPropertyValue {
25 pub fn new(property_name: String, value: Option<models::CustomPropertyValueValue>) -> CustomPropertyValue {
27 CustomPropertyValue {
28 property_name,
29 value: value.map(Box::new),
30 }
31 }
32}
33