windmill-api 1.741.0

No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
Documentation
/*
 * Windmill API
 *
 * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
 *
 * The version of the OpenAPI document: 1.741.0
 * Contact: contact@windmill.dev
 * Generated by: https://openapi-generator.tech
 */

use crate::models;
use serde::{Deserialize, Serialize};

#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
pub struct GetFlowAllLogsStructured200ResponseInner {
    #[serde(rename = "job_id")]
    pub job_id: String,
    /// human-readable label describing the job's position in the flow tree
    #[serde(rename = "label")]
    pub label: String,
    /// job kind (script, flow, forloopflow, ...)
    #[serde(rename = "kind")]
    pub kind: String,
    #[serde(rename = "flow_step_id", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")]
    pub flow_step_id: Option<Option<String>>,
    /// materialized step path (e.g. \"a/b\")
    #[serde(rename = "step_path", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")]
    pub step_path: Option<Option<String>>,
    /// depth in the flow tree (0 for the root flow job)
    #[serde(rename = "depth")]
    pub depth: i32,
    /// parent module type (forloopflow, branchall, ...)
    #[serde(rename = "parent_module_type", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")]
    pub parent_module_type: Option<Option<String>>,
    /// 1-based index of this job among siblings sharing the same step
    #[serde(rename = "sibling_index")]
    pub sibling_index: i32,
    /// total number of siblings sharing the same step
    #[serde(rename = "sibling_count")]
    pub sibling_count: i32,
    #[serde(rename = "logs")]
    pub logs: String,
}

impl GetFlowAllLogsStructured200ResponseInner {
    pub fn new(job_id: String, label: String, kind: String, depth: i32, sibling_index: i32, sibling_count: i32, logs: String) -> GetFlowAllLogsStructured200ResponseInner {
        GetFlowAllLogsStructured200ResponseInner {
            job_id,
            label,
            kind,
            flow_step_id: None,
            step_path: None,
            depth,
            parent_module_type: None,
            sibling_index,
            sibling_count,
            logs,
        }
    }
}