figma_api/models/variable_code_syntax.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/// VariableCodeSyntax : An object containing platform-specific code syntax definitions for a variable. All platforms are optional.
15#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
16pub struct VariableCodeSyntax {
17 #[serde(rename = "WEB", skip_serializing_if = "Option::is_none")]
18 pub web: Option<String>,
19 #[serde(rename = "ANDROID", skip_serializing_if = "Option::is_none")]
20 pub android: Option<String>,
21 #[serde(rename = "iOS", skip_serializing_if = "Option::is_none")]
22 pub i_os: Option<String>,
23}
24
25impl VariableCodeSyntax {
26 /// An object containing platform-specific code syntax definitions for a variable. All platforms are optional.
27 pub fn new() -> VariableCodeSyntax {
28 VariableCodeSyntax {
29 web: None,
30 android: None,
31 i_os: None,
32 }
33 }
34}
35