windmill-api 1.775.1

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.775.1
 * 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 GetFlowAllResults200Response {
    /// set when the requested job is itself a step of a larger flow run; id of the flow run directly enclosing it
    #[serde(rename = "enclosing_job", skip_serializing_if = "Option::is_none")]
    pub enclosing_job: Option<uuid::Uuid>,
    #[serde(rename = "entries")]
    pub entries: Vec<models::GetFlowAllResults200ResponseEntriesInner>,
    /// true when the tree has more jobs than the entry cap; entries then hold the depth-first prefix
    #[serde(rename = "truncated", skip_serializing_if = "Option::is_none")]
    pub truncated: Option<bool>,
    /// true when the caller's token is tag-scoped; steps running on other tags are omitted
    #[serde(rename = "scope_filtered", skip_serializing_if = "Option::is_none")]
    pub scope_filtered: Option<bool>,
    /// set when step was provided but could not be resolved; a diagnostic listing available step ids or iteration statuses
    #[serde(rename = "step_error", skip_serializing_if = "Option::is_none")]
    pub step_error: Option<String>,
}

impl GetFlowAllResults200Response {
    pub fn new(entries: Vec<models::GetFlowAllResults200ResponseEntriesInner>) -> GetFlowAllResults200Response {
        GetFlowAllResults200Response {
            enclosing_job: None,
            entries,
            truncated: None,
            scope_filtered: None,
            step_error: None,
        }
    }
}