Skip to main content

windmill_api/models/
go_cloud_trial_offer_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.817.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 GoCloudTrialOffer200Response {
16    #[serde(rename = "location")]
17    pub location: String,
18    /// present when the portal refused (e.g. the account already has a subscription); the offer is then spent
19    #[serde(rename = "reason", skip_serializing_if = "Option::is_none")]
20    pub reason: Option<String>,
21}
22
23impl GoCloudTrialOffer200Response {
24    pub fn new(location: String) -> GoCloudTrialOffer200Response {
25        GoCloudTrialOffer200Response {
26            location,
27            reason: None,
28        }
29    }
30}
31