windmill_api/models/
concurrency_group.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.555.2
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 ConcurrencyGroup {
16    #[serde(rename = "concurrency_key")]
17    pub concurrency_key: String,
18    #[serde(rename = "total_running")]
19    pub total_running: f64,
20}
21
22impl ConcurrencyGroup {
23    pub fn new(concurrency_key: String, total_running: f64) -> ConcurrencyGroup {
24        ConcurrencyGroup {
25            concurrency_key,
26            total_running,
27        }
28    }
29}
30