figma_api/models/variable_data.rs
1/*
2 * Figma API
3 *
4 * This is the OpenAPI specification for the [Figma REST API](https://www.figma.com/developers/api). Note: we are releasing the OpenAPI specification as a beta given the large surface area and complexity of the REST API. If you notice any inaccuracies with the specification, please [file an issue](https://github.com/figma/rest-api-spec/issues).
5 *
6 * The version of the OpenAPI document: 0.31.0
7 * Contact: support@figma.com
8 * Generated by: https://openapi-generator.tech
9 */
10
11use crate::models;
12use serde::{Deserialize, Serialize};
13
14/// VariableData : A value to set a variable to during prototyping.
15#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
16pub struct VariableData {
17 #[serde(rename = "type", skip_serializing_if = "Option::is_none")]
18 pub r#type: Option<models::VariableDataType>,
19 #[serde(rename = "resolvedType", skip_serializing_if = "Option::is_none")]
20 pub resolved_type: Option<models::VariableResolvedDataType>,
21 #[serde(rename = "value", skip_serializing_if = "Option::is_none")]
22 pub value: Option<Box<models::VariableDataValue>>,
23}
24
25impl VariableData {
26 /// A value to set a variable to during prototyping.
27 pub fn new() -> VariableData {
28 VariableData {
29 r#type: None,
30 resolved_type: None,
31 value: None,
32 }
33 }
34}
35