use serde::Deserialize;
#[derive(Deserialize, Debug)]
pub struct ScalewayApiError {
pub message: String,
pub resource: Option<String>,
pub resource_id: Option<String>,
#[serde(rename = "type")]
pub etype: String,
pub details: Option<Vec<ScalewayApiErrorDetails>>,
}
#[derive(Deserialize, Debug)]
pub struct ScalewayApiErrorDetails {
pub reason: String,
pub help_message: Option<String>,
}