figma_api/models/
variable_data_value.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#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)]
15#[serde(untagged)]
16pub enum VariableDataValue {
17    Boolean(bool),
18    Number(f64),
19    String(String),
20    Rgb(Box<models::Rgb>),
21    Rgba(Box<models::Rgba>),
22    VariableAlias(Box<models::VariableAlias>),
23    Expression(Box<models::Expression>),
24}
25
26impl Default for VariableDataValue {
27    fn default() -> Self {
28        Self::Boolean(Default::default())
29    }
30}
31/// 
32#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)]
33pub enum Type {
34    #[serde(rename = "VARIABLE_ALIAS")]
35    VariableAlias,
36}
37
38impl Default for Type {
39    fn default() -> Type {
40        Self::VariableAlias
41    }
42}
43