figma_api/models/post_variables.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 PostVariables {
16 /// The response status code.
17 #[serde(rename = "status")]
18 pub status: f64,
19 /// For successful requests, this value is always `false`.
20 #[serde(rename = "error")]
21 pub error: bool,
22 #[serde(rename = "meta")]
23 pub meta: Box<models::PostVariablesMeta>,
24}
25
26impl PostVariables {
27 pub fn new(status: f64, error: bool, meta: models::PostVariablesMeta) -> PostVariables {
28 PostVariables {
29 status,
30 error,
31 meta: Box::new(meta),
32 }
33 }
34}
35