figma_api/models/get_file_branches_item.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 GetFileBranchesItem {
16 /// The key of the branch.
17 #[serde(rename = "key")]
18 pub key: String,
19 /// The name of the branch.
20 #[serde(rename = "name")]
21 pub name: String,
22 /// A URL to a thumbnail image of the branch.
23 #[serde(rename = "thumbnail_url")]
24 pub thumbnail_url: String,
25 /// The UTC ISO 8601 time at which the branch was last modified.
26 #[serde(rename = "last_modified")]
27 pub last_modified: String,
28}
29
30impl GetFileBranchesItem {
31 pub fn new(key: String, name: String, thumbnail_url: String, last_modified: String) -> GetFileBranchesItem {
32 GetFileBranchesItem {
33 key,
34 name,
35 thumbnail_url,
36 last_modified,
37 }
38 }
39}
40