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
18
use serde::Deserialize;

#[derive(Deserialize, Debug)]
pub struct ScalewayProjectsRoot {
    pub projects: Vec<ScalewayProject>,
}

#[derive(Deserialize, Debug)]
pub struct ScalewayProject {
    pub id: String,
    pub name: String,
    pub organization_id: String,
    #[serde(with = "time::serde::rfc3339::option")]
    pub created_at: Option<time::OffsetDateTime>,
    #[serde(with = "time::serde::rfc3339::option")]
    pub updated_at: Option<time::OffsetDateTime>,
    pub description: Option<String>,
}