Skip to main content

windmill_api/models/
get_billable_seats_200_response.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.799.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 GetBillableSeats200Response {
16    /// Omitted when the seats counted are another workspace's, as they are for a fork resolving to its billing root.
17    #[serde(rename = "developers", skip_serializing_if = "Option::is_none")]
18    pub developers: Option<i32>,
19    /// Omitted when the seats counted are another workspace's, as they are for a fork resolving to its billing root.
20    #[serde(rename = "operators", skip_serializing_if = "Option::is_none")]
21    pub operators: Option<i32>,
22    #[serde(rename = "seats")]
23    pub seats: i32,
24}
25
26impl GetBillableSeats200Response {
27    pub fn new(seats: i32) -> GetBillableSeats200Response {
28        GetBillableSeats200Response {
29            developers: None,
30            operators: None,
31            seats,
32        }
33    }
34}
35