Skip to main content

windmill_api/models/
get_flow_all_logs_structured_200_response_inner.rs

1/*
2 * Windmill API
3 *
4 * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
5 *
6 * The version of the OpenAPI document: 1.741.0
7 * Contact: contact@windmill.dev
8 * Generated by: https://openapi-generator.tech
9 */
10
11use crate::models;
12use serde::{Deserialize, Serialize};
13
14#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
15pub struct GetFlowAllLogsStructured200ResponseInner {
16    #[serde(rename = "job_id")]
17    pub job_id: String,
18    /// human-readable label describing the job's position in the flow tree
19    #[serde(rename = "label")]
20    pub label: String,
21    /// job kind (script, flow, forloopflow, ...)
22    #[serde(rename = "kind")]
23    pub kind: String,
24    #[serde(rename = "flow_step_id", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")]
25    pub flow_step_id: Option<Option<String>>,
26    /// materialized step path (e.g. \"a/b\")
27    #[serde(rename = "step_path", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")]
28    pub step_path: Option<Option<String>>,
29    /// depth in the flow tree (0 for the root flow job)
30    #[serde(rename = "depth")]
31    pub depth: i32,
32    /// parent module type (forloopflow, branchall, ...)
33    #[serde(rename = "parent_module_type", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")]
34    pub parent_module_type: Option<Option<String>>,
35    /// 1-based index of this job among siblings sharing the same step
36    #[serde(rename = "sibling_index")]
37    pub sibling_index: i32,
38    /// total number of siblings sharing the same step
39    #[serde(rename = "sibling_count")]
40    pub sibling_count: i32,
41    #[serde(rename = "logs")]
42    pub logs: String,
43}
44
45impl GetFlowAllLogsStructured200ResponseInner {
46    pub fn new(job_id: String, label: String, kind: String, depth: i32, sibling_index: i32, sibling_count: i32, logs: String) -> GetFlowAllLogsStructured200ResponseInner {
47        GetFlowAllLogsStructured200ResponseInner {
48            job_id,
49            label,
50            kind,
51            flow_step_id: None,
52            step_path: None,
53            depth,
54            parent_module_type: None,
55            sibling_index,
56            sibling_count,
57            logs,
58        }
59    }
60}
61