figma_api/models/
inline_object_14_meta.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 InlineObject14Meta {
16    /// A map of variable ids to variables
17    #[serde(rename = "variables")]
18    pub variables: std::collections::HashMap<String, models::PublishedVariable>,
19    /// A map of variable collection ids to variable collections
20    #[serde(rename = "variableCollections")]
21    pub variable_collections: std::collections::HashMap<String, models::PublishedVariableCollection>,
22}
23
24impl InlineObject14Meta {
25    pub fn new(variables: std::collections::HashMap<String, models::PublishedVariable>, variable_collections: std::collections::HashMap<String, models::PublishedVariableCollection>) -> InlineObject14Meta {
26        InlineObject14Meta {
27            variables,
28            variable_collections,
29        }
30    }
31}
32