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