1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
use serde::Deserialize;

#[derive(Deserialize, Debug)]
pub struct UpcloudServerTemplateListRoot {
    pub storages: UpcloudServerTemplateList,
}

#[derive(Deserialize, Debug)]
pub struct UpcloudServerTemplateList {
    pub storage: Vec<UpcloudServerTemplate>,
}

#[derive(Deserialize, Debug)]
pub struct UpcloudServerTemplate {
    pub access: String,
    pub license: f32,
    pub size: u32,
    pub state: String,
    pub template_type: String,
    pub title: String,
    #[serde(rename = "type")]
    pub ttype: String,
    pub uuid: String,
}