Skip to main content

windmill_api/models/
hidden_items_summary.rs

1/*
2 * Windmill API
3 *
4 * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
5 *
6 * The version of the OpenAPI document: 1.745.0
7 * Contact: contact@windmill.dev
8 * Generated by: https://openapi-generator.tech
9 */
10
11use crate::models;
12use serde::{Deserialize, Serialize};
13
14#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
15pub struct HiddenItemsSummary {
16    /// Total number of hidden items on this side
17    #[serde(rename = "total")]
18    pub total: i32,
19    /// Count of hidden items keyed by item kind (always populated)
20    #[serde(rename = "by_kind")]
21    pub by_kind: std::collections::HashMap<String, i32>,
22    /// Kind and path of each hidden item; only populated when the caller is an admin of the relevant side (empty otherwise)
23    #[serde(rename = "items")]
24    pub items: Vec<models::HiddenItem>,
25}
26
27impl HiddenItemsSummary {
28    pub fn new(total: i32, by_kind: std::collections::HashMap<String, i32>, items: Vec<models::HiddenItem>) -> HiddenItemsSummary {
29        HiddenItemsSummary {
30            total,
31            by_kind,
32            items,
33        }
34    }
35}
36