windmill-api 1.745.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.745.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 HiddenItemsSummary {
    /// Total number of hidden items on this side
    #[serde(rename = "total")]
    pub total: i32,
    /// Count of hidden items keyed by item kind (always populated)
    #[serde(rename = "by_kind")]
    pub by_kind: std::collections::HashMap<String, i32>,
    /// Kind and path of each hidden item; only populated when the caller is an admin of the relevant side (empty otherwise)
    #[serde(rename = "items")]
    pub items: Vec<models::HiddenItem>,
}

impl HiddenItemsSummary {
    pub fn new(total: i32, by_kind: std::collections::HashMap<String, i32>, items: Vec<models::HiddenItem>) -> HiddenItemsSummary {
        HiddenItemsSummary {
            total,
            by_kind,
            items,
        }
    }
}