windmill-api 1.885.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.885.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 ListWaitingApprovals200Response {
    /// the most recent of the listed runs, at most 100
    #[serde(rename = "approvals")]
    pub approvals: Vec<models::ListWaitingApprovals200ResponseApprovalsInner>,
    /// how many runs are listed in all
    #[serde(rename = "total")]
    pub total: i32,
}

impl ListWaitingApprovals200Response {
    pub fn new(approvals: Vec<models::ListWaitingApprovals200ResponseApprovalsInner>, total: i32) -> ListWaitingApprovals200Response {
        ListWaitingApprovals200Response {
            approvals,
            total,
        }
    }
}