windmill-api 1.862.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.862.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 ListRecentRuns200Response {
    #[serde(rename = "window_hours")]
    pub window_hours: i32,
    /// the window holds more runs than were read, so counts cover the newest ones only
    #[serde(rename = "capped")]
    pub capped: bool,
    #[serde(rename = "total_runs")]
    pub total_runs: i32,
    #[serde(rename = "failed_runs")]
    pub failed_runs: i32,
    #[serde(rename = "failing_items")]
    pub failing_items: i32,
    #[serde(rename = "running_items")]
    pub running_items: i32,
    #[serde(rename = "items")]
    pub items: Vec<models::ListRecentRuns200ResponseItemsInner>,
}

impl ListRecentRuns200Response {
    pub fn new(window_hours: i32, capped: bool, total_runs: i32, failed_runs: i32, failing_items: i32, running_items: i32, items: Vec<models::ListRecentRuns200ResponseItemsInner>) -> ListRecentRuns200Response {
        ListRecentRuns200Response {
            window_hours,
            capped,
            total_runs,
            failed_runs,
            failing_items,
            running_items,
            items,
        }
    }
}