gitbundle_sdk/models/
step_update_input.rs1use serde::{Deserialize, Serialize};
12
13use crate::models;
14
15#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
16pub struct StepUpdateInput {
17 #[serde(
18 rename = "error",
19 default,
20 with = "::serde_with::rust::double_option",
21 skip_serializing_if = "Option::is_none"
22 )]
23 pub error: Option<Option<String>>,
24 #[serde(
25 rename = "exit_code",
26 default,
27 with = "::serde_with::rust::double_option",
28 skip_serializing_if = "Option::is_none"
29 )]
30 pub exit_code: Option<Option<i64>>,
31 #[serde(rename = "outputs", skip_serializing_if = "Option::is_none")]
32 pub outputs: Option<std::collections::HashMap<String, serde_json::Value>>,
33 #[serde(
34 rename = "started",
35 default,
36 with = "::serde_with::rust::double_option",
37 skip_serializing_if = "Option::is_none"
38 )]
39 pub started: Option<Option<i64>>,
40 #[serde(
41 rename = "status",
42 default,
43 with = "::serde_with::rust::double_option",
44 skip_serializing_if = "Option::is_none"
45 )]
46 pub status: Option<Option<models::CiStatus>>,
47 #[serde(
49 rename = "stepconclusion",
50 default,
51 with = "::serde_with::rust::double_option",
52 skip_serializing_if = "Option::is_none"
53 )]
54 pub stepconclusion: Option<Option<models::StatusContext>>,
55 #[serde(rename = "stepid", skip_serializing_if = "Option::is_none")]
56 pub stepid: Option<String>,
57 #[serde(
59 rename = "stepoutcome",
60 default,
61 with = "::serde_with::rust::double_option",
62 skip_serializing_if = "Option::is_none"
63 )]
64 pub stepoutcome: Option<Option<models::StatusContext>>,
65 #[serde(
66 rename = "stopped",
67 default,
68 with = "::serde_with::rust::double_option",
69 skip_serializing_if = "Option::is_none"
70 )]
71 pub stopped: Option<Option<i64>>,
72}
73
74impl StepUpdateInput {
75 pub fn new() -> StepUpdateInput {
76 StepUpdateInput {
77 error: None,
78 exit_code: None,
79 outputs: None,
80 started: None,
81 status: None,
82 stepconclusion: None,
83 stepid: None,
84 stepoutcome: None,
85 stopped: None,
86 }
87 }
88}