1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29

use serde::{Serialize, Deserialize};
#[derive(Debug, Clone, Serialize, Deserialize, Default)]
pub struct Service {
    #[serde(rename = "autoDeploy")]
    pub auto_deploy: String,
    pub branch: String,
    #[serde(rename = "createdAt")]
    pub created_at: String,
    pub id: String,
    pub name: String,
    #[serde(rename = "notifyOnFail")]
    pub notify_on_fail: String,
    #[serde(rename = "ownerId")]
    pub owner_id: String,
    pub repo: String,
    pub slug: String,
    pub suspended: String,
    pub suspenders: Vec<String>,
    #[serde(rename = "type")]
    pub type_: String,
    #[serde(rename = "updatedAt")]
    pub updated_at: String,
}
impl std::fmt::Display for Service {
    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> Result<(), std::fmt::Error> {
        write!(f, "{}", serde_json::to_string(self).unwrap())
    }
}