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
use serde::{Deserialize, Serialize};
#[derive(Debug, Clone, Serialize, Deserialize)]
#[serde(rename_all = "camelCase")]
pub struct OpenCreatedItem {
pub key: String,
pub value: String,
pub comment: Option<String>,
pub data_change_created_by: String,
}
impl Default for OpenCreatedItem {
fn default() -> Self {
OpenCreatedItem {
key: "".to_string(),
value: "".to_string(),
comment: None,
data_change_created_by: "".to_string(),
}
}
}
#[derive(Debug, Clone, Serialize, Deserialize)]
#[serde(rename_all = "camelCase")]
pub struct OpenUpdateItem {
pub key: String,
pub value: String,
pub comment: Option<String>,
pub data_change_created_by: Option<String>,
pub data_change_last_modified_by: String,
}
impl Default for OpenUpdateItem {
fn default() -> Self {
OpenUpdateItem {
key: "".to_string(),
value: "".to_string(),
comment: None,
data_change_created_by: None,
data_change_last_modified_by: "".to_string(),
}
}
}
#[derive(Debug, Clone, Serialize, Deserialize)]
#[serde(rename_all = "camelCase")]
pub struct OpenRelease {
pub release_title: String,
pub release_comment: Option<String>,
pub released_by: String,
}
impl Default for OpenRelease {
fn default() -> Self {
OpenRelease {
release_title: "".to_string(),
release_comment: None,
released_by: "".to_string(),
}
}
}