apollo_client/open/
meta.rs1use serde::{Deserialize, Serialize};
4
5#[derive(Debug, Clone, Serialize, Deserialize)]
7#[serde(rename_all = "camelCase")]
8pub struct OpenCreatedItem {
9 pub key: String,
10 pub value: String,
11 pub comment: Option<String>,
12 pub data_change_created_by: String,
13}
14
15impl Default for OpenCreatedItem {
16 fn default() -> Self {
17 OpenCreatedItem {
18 key: "".to_string(),
19 value: "".to_string(),
20 comment: None,
21 data_change_created_by: "".to_string(),
22 }
23 }
24}
25
26#[derive(Debug, Clone, Serialize, Deserialize)]
28#[serde(rename_all = "camelCase")]
29pub struct OpenUpdateItem {
30 pub key: String,
31 pub value: String,
32 pub comment: Option<String>,
33 pub data_change_created_by: Option<String>,
34 pub data_change_last_modified_by: String,
35}
36
37impl Default for OpenUpdateItem {
38 fn default() -> Self {
39 OpenUpdateItem {
40 key: "".to_string(),
41 value: "".to_string(),
42 comment: None,
43 data_change_created_by: None,
44 data_change_last_modified_by: "".to_string(),
45 }
46 }
47}
48
49#[derive(Debug, Clone, Serialize, Deserialize)]
51#[serde(rename_all = "camelCase")]
52pub struct OpenRelease {
53 pub release_title: String,
54 pub release_comment: Option<String>,
55 pub released_by: String,
56}
57
58impl Default for OpenRelease {
59 fn default() -> Self {
60 OpenRelease {
61 release_title: "".to_string(),
62 release_comment: None,
63 released_by: "".to_string(),
64 }
65 }
66}