figma_api/models/published_variable_collection.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/// PublishedVariableCollection : A grouping of related Variable objects each with the same modes.
15#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
16pub struct PublishedVariableCollection {
17 /// The unique identifier of this variable collection.
18 #[serde(rename = "id")]
19 pub id: String,
20 /// The ID of the variable collection that is used by subscribing files. This ID changes every time the variable collection is modified and published.
21 #[serde(rename = "subscribed_id")]
22 pub subscribed_id: String,
23 /// The name of this variable collection.
24 #[serde(rename = "name")]
25 pub name: String,
26 /// The key of this variable collection.
27 #[serde(rename = "key")]
28 pub key: String,
29 /// The UTC ISO 8601 time at which the variable collection was last updated. This timestamp will change any time a variable in the collection is changed.
30 #[serde(rename = "updatedAt")]
31 pub updated_at: String,
32}
33
34impl PublishedVariableCollection {
35 /// A grouping of related Variable objects each with the same modes.
36 pub fn new(id: String, subscribed_id: String, name: String, key: String, updated_at: String) -> PublishedVariableCollection {
37 PublishedVariableCollection {
38 id,
39 subscribed_id,
40 name,
41 key,
42 updated_at,
43 }
44 }
45}
46