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,
#[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,
}
}
}