Skip to main content

devops_armory/cloud/hetzner/volumes/
models.rs

1use std::collections::HashMap;
2
3use serde_derive::{Serialize, Deserialize};
4
5#[derive(Serialize, Deserialize, Default, Debug)]
6pub struct CreateHetznerVolume {
7    pub size: i32,
8    pub name: String,
9    pub labels: Option<HashMap<String, String>>,
10    pub location: String,
11    pub automount: Option<bool>,
12    pub format: Option<String>,
13    pub server: i64
14}
15
16#[derive(Serialize, Deserialize, Default, Debug)]
17pub struct UpdateHetznerVolume {
18    pub name: Option<String>,
19    pub labels: Option<HashMap<String, String>>,
20}