scaleway-rs 0.2.1

A pure Rust scaleway API binding.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
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>,
}