upcloud_rs/data/
templates.rs1use serde::Deserialize;
2
3#[derive(Deserialize, Debug)]
4pub struct UpcloudServerTemplateListRoot {
5 pub storages: UpcloudServerTemplateList,
6}
7
8#[derive(Deserialize, Debug)]
9pub struct UpcloudServerTemplateList {
10 pub storage: Vec<UpcloudServerTemplate>,
11}
12
13#[derive(Deserialize, Debug)]
14pub struct UpcloudServerTemplate {
15 pub access: String,
16 pub license: f32,
17 pub size: u32,
18 pub state: String,
19 pub template_type: String,
20 pub title: String,
21 #[serde(rename = "type")]
22 pub ttype: String,
23 pub uuid: String,
24}