upcloud_rs/data/
plan.rs

1use serde::Deserialize;
2
3#[derive(Deserialize, Debug)]
4pub struct UpcloudPlanListRoot {
5    pub plans: UpcloudPlanList,
6}
7
8#[derive(Deserialize, Debug)]
9pub struct UpcloudPlanList {
10    pub plan: Vec<UpcloudPlan>,
11}
12
13#[derive(Deserialize, Debug)]
14pub struct UpcloudPlan {
15    pub core_number: u32,
16    pub memory_amount: u32,
17    pub name: String,
18    pub public_traffic_out: u32,
19    pub storage_size: u32,
20    pub storage_tier: String,
21}