windmill-api 1.684.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.684.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 GetCriticalAlerts200Response {
    #[serde(rename = "alerts", skip_serializing_if = "Option::is_none")]
    pub alerts: Option<Vec<models::CriticalAlert>>,
    /// Total number of rows matching the query.
    #[serde(rename = "total_rows", skip_serializing_if = "Option::is_none")]
    pub total_rows: Option<i32>,
    /// Total number of pages based on the page size.
    #[serde(rename = "total_pages", skip_serializing_if = "Option::is_none")]
    pub total_pages: Option<i32>,
}

impl GetCriticalAlerts200Response {
    pub fn new() -> GetCriticalAlerts200Response {
        GetCriticalAlerts200Response {
            alerts: None,
            total_rows: None,
            total_pages: None,
        }
    }
}