figma_api/models/variable_mode_delete.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/// VariableModeDelete : An object that contains details about deleting a `VariableMode`.
15#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
16pub struct VariableModeDelete {
17 /// The action to perform for the variable mode.
18 #[serde(rename = "action")]
19 pub action: Action,
20 /// The id of the variable mode to delete.
21 #[serde(rename = "id")]
22 pub id: String,
23}
24
25impl VariableModeDelete {
26 /// An object that contains details about deleting a `VariableMode`.
27 pub fn new(action: Action, id: String) -> VariableModeDelete {
28 VariableModeDelete {
29 action,
30 id,
31 }
32 }
33}
34/// The action to perform for the variable mode.
35#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)]
36pub enum Action {
37 #[serde(rename = "DELETE")]
38 Delete,
39}
40
41impl Default for Action {
42 fn default() -> Action {
43 Self::Delete
44 }
45}
46