Skip to main content

gitbundle_sdk/models/
step_update_input.rs

1/*
2 * GitBundle API
3 *
4 * GitBundle API documentation.
5 *
6 * The version of the OpenAPI document: 3.4.1
7 *
8 * Generated by: https://openapi-generator.tech
9 */
10
11use 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(
32        rename = "outputs",
33        default,
34        with = "::serde_with::rust::double_option",
35        skip_serializing_if = "Option::is_none"
36    )]
37    pub outputs: Option<Option<std::collections::HashMap<String, String>>>,
38    #[serde(
39        rename = "started",
40        default,
41        with = "::serde_with::rust::double_option",
42        skip_serializing_if = "Option::is_none"
43    )]
44    pub started: Option<Option<i64>>,
45    #[serde(
46        rename = "status",
47        default,
48        with = "::serde_with::rust::double_option",
49        skip_serializing_if = "Option::is_none"
50    )]
51    pub status: Option<Option<models::CiStatus>>,
52    /// The step result status after the yaml is executed
53    #[serde(
54        rename = "stepconclusion",
55        default,
56        with = "::serde_with::rust::double_option",
57        skip_serializing_if = "Option::is_none"
58    )]
59    pub stepconclusion: Option<Option<models::StatusContext>>,
60    /// The step id configured in the yaml file. When none, the step maybe a pre step, or post step.
61    #[serde(
62        rename = "stepid",
63        default,
64        with = "::serde_with::rust::double_option",
65        skip_serializing_if = "Option::is_none"
66    )]
67    pub stepid: Option<Option<String>>,
68    /// The step result status after the yaml is executed.
69    #[serde(
70        rename = "stepoutcome",
71        default,
72        with = "::serde_with::rust::double_option",
73        skip_serializing_if = "Option::is_none"
74    )]
75    pub stepoutcome: Option<Option<models::StatusContext>>,
76    #[serde(
77        rename = "stopped",
78        default,
79        with = "::serde_with::rust::double_option",
80        skip_serializing_if = "Option::is_none"
81    )]
82    pub stopped: Option<Option<i64>>,
83}
84
85impl StepUpdateInput {
86    pub fn new() -> StepUpdateInput {
87        StepUpdateInput {
88            error: None,
89            exit_code: None,
90            outputs: None,
91            started: None,
92            status: None,
93            stepconclusion: None,
94            stepid: None,
95            stepoutcome: None,
96            stopped: None,
97        }
98    }
99}