discloud_rs/app/
status.rs

1use serde::Deserialize;
2
3#[derive(Deserialize, Debug, Clone)]
4pub struct AppStatusResponseUnique {
5    pub apps: AppStatus,
6    pub message: String,
7    pub status: String,
8}
9
10#[derive(Deserialize, Debug, Clone)]
11pub struct AppStatusResponseAll {
12    pub apps: Vec<AppStatus>,
13    pub message: String,
14    pub status: String,
15}
16
17#[derive(Deserialize, Debug, Clone)]
18pub struct AppStatus {
19    pub container: String,
20    pub cpu: String,
21    pub id: String,
22    pub last_restart: String,
23    pub memory: String,
24    #[serde(rename = "netIO")]
25    pub net_io: NetIO,
26    pub ssd: String,
27    #[serde(rename = "startedAt")]
28    pub started_at: String,
29}
30
31#[derive(Deserialize, Debug, Clone)]
32pub struct NetIO {
33    pub down: String,
34    pub up: String,
35}