figma_api/models/
overrides.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/// Overrides : Fields directly overridden on an instance. Inherited overrides are not included.
15#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
16pub struct Overrides {
17    /// A unique ID for a node.
18    #[serde(rename = "id")]
19    pub id: String,
20    /// An array of properties.
21    #[serde(rename = "overriddenFields")]
22    pub overridden_fields: Vec<String>,
23}
24
25impl Overrides {
26    /// Fields directly overridden on an instance. Inherited overrides are not included.
27    pub fn new(id: String, overridden_fields: Vec<String>) -> Overrides {
28        Overrides {
29            id,
30            overridden_fields,
31        }
32    }
33}
34