figma_api/models/
component_property_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/// ComponentPropertyValue : Value of the property for this component instance.
15/// Value of the property for this component instance.
16#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)]
17#[serde(untagged)]
18pub enum ComponentPropertyValue {
19    Boolean(bool),
20    String(String),
21}
22
23impl Default for ComponentPropertyValue {
24    fn default() -> Self {
25        Self::Boolean(Default::default())
26    }
27}
28