Skip to main content

windmill_api/models/
get_premium_info_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.783.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 GetPremiumInfo200Response {
16    #[serde(rename = "premium")]
17    pub premium: bool,
18    #[serde(rename = "usage", skip_serializing_if = "Option::is_none")]
19    pub usage: Option<f64>,
20    #[serde(rename = "owner")]
21    pub owner: String,
22    #[serde(rename = "status", skip_serializing_if = "Option::is_none")]
23    pub status: Option<String>,
24    #[serde(rename = "is_past_due")]
25    pub is_past_due: bool,
26    #[serde(rename = "max_tolerated_executions", skip_serializing_if = "Option::is_none")]
27    pub max_tolerated_executions: Option<f64>,
28}
29
30impl GetPremiumInfo200Response {
31    pub fn new(premium: bool, owner: String, is_past_due: bool) -> GetPremiumInfo200Response {
32        GetPremiumInfo200Response {
33            premium,
34            usage: None,
35            owner,
36            status: None,
37            is_past_due,
38            max_tolerated_executions: None,
39        }
40    }
41}
42