figma_api/models/inline_object_16.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 InlineObject16 {
16 /// Status code
17 #[serde(rename = "status")]
18 pub status: Status,
19 /// A string describing the error
20 #[serde(rename = "err")]
21 pub err: String,
22}
23
24impl InlineObject16 {
25 pub fn new(status: Status, err: String) -> InlineObject16 {
26 InlineObject16 {
27 status,
28 err,
29 }
30 }
31}
32/// Status code
33#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)]
34pub enum Status {
35 #[serde(rename = "400")]
36 Variant400,
37}
38
39impl Default for Status {
40 fn default() -> Status {
41 Self::Variant400
42 }
43}
44