figma_api/models/get_images.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 GetImages {
16 /// For successful requests, this value is always `null`.
17 #[serde(rename = "err", deserialize_with = "Option::deserialize")]
18 pub err: Option<serde_json::Value>,
19 /// A map from node IDs to URLs of the rendered images.
20 #[serde(rename = "images")]
21 pub images: std::collections::HashMap<String, String>,
22}
23
24impl GetImages {
25 pub fn new(err: Option<serde_json::Value>, images: std::collections::HashMap<String, String>) -> GetImages {
26 GetImages {
27 err,
28 images,
29 }
30 }
31}
32