figma_api/models/
component_properties_trait.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, Default, Debug, PartialEq, Serialize, Deserialize)]
15pub struct ComponentPropertiesTrait {
16    /// A mapping of name to `ComponentPropertyDefinition` for every component property on this component. Each property has a type, defaultValue, and other optional values.
17    #[serde(rename = "componentPropertyDefinitions", skip_serializing_if = "Option::is_none")]
18    pub component_property_definitions: Option<std::collections::HashMap<String, models::ComponentPropertyDefinition>>,
19}
20
21impl ComponentPropertiesTrait {
22    pub fn new() -> ComponentPropertiesTrait {
23        ComponentPropertiesTrait {
24            component_property_definitions: None,
25        }
26    }
27}
28