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.0.0
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(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    /// The step result status after the yaml is executed
48    #[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    /// The step result status after the yaml is executed.
58    #[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}