use serde::Deserialize;
#[derive(Deserialize, Debug)]
pub struct ScalewayVolumeRoot {
pub volume: ScalewayVolume,
}
#[derive(Deserialize, Debug)]
pub struct ScalewayVolumesRoot {
pub volumes: Vec<ScalewayVolume>,
}
#[derive(Deserialize, Debug)]
pub struct ScalewayVolume {
pub id: String,
pub name: String,
#[serde(rename = "volume_type")]
pub volume_type: String,
pub size: u64,
pub state: String,
pub zone: String,
pub project: String,
pub organization: String,
pub tags: Vec<String>,
pub server: Option<ScalewayVolumeServerRef>,
pub creation_date: Option<String>,
pub modification_date: Option<String>,
}
#[derive(Deserialize, Debug)]
pub struct ScalewayVolumeServerRef {
pub id: String,
pub name: String,
}