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
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
use crate::framework::response::ApiResult;
use chrono::offset::Utc;
use chrono::DateTime;
use std::collections::HashMap;
pub mod delete;
pub mod get;
pub mod patch;
pub mod post;
pub mod put;
pub use get::SlugDetails;
pub use post::{SlugCreate, SlugCreateParams};
impl ApiResult for Slug {}
impl ApiResult for Vec<Slug> {}
#[derive(Deserialize, Serialize, Debug, Clone, PartialEq, Eq)]
pub struct Slug {
pub blob: Blob,
pub buildpack_provided_description: Option<String>,
pub checksum: Option<String>,
pub commit: Option<String>,
pub commit_description: Option<String>,
pub created_at: DateTime<Utc>,
pub id: String,
pub process_types: Option<HashMap<String, String>>,
pub size: Option<i64>,
pub stack: Stack,
pub updated_at: DateTime<Utc>,
}
#[derive(Deserialize, Serialize, Debug, Clone, PartialEq, Eq)]
pub struct Blob {
pub method: String,
pub url: String,
}
#[derive(Deserialize, Serialize, Debug, Clone, PartialEq, Eq)]
pub struct ProcessTypes {
pub web: String,
}
#[derive(Deserialize, Serialize, Debug, Clone, PartialEq, Eq)]
pub struct Stack {
pub id: String,
pub name: String,
}