openapi_github/models/
marketplace_purchase_marketplace_purchase.rs

1/*
2 * GitHub's official OpenAPI spec + Octokit extension
3 *
4 * OpenAPI specs from https://github.com/github/rest-api-description with the 'x-octokit' extension required by the Octokit SDKs
5 *
6 * The version of the OpenAPI document: 16.6.0
7 * 
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 MarketplacePurchaseMarketplacePurchase {
16    #[serde(rename = "billing_cycle", skip_serializing_if = "Option::is_none")]
17    pub billing_cycle: Option<String>,
18    #[serde(rename = "next_billing_date", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")]
19    pub next_billing_date: Option<Option<String>>,
20    #[serde(rename = "is_installed", skip_serializing_if = "Option::is_none")]
21    pub is_installed: Option<bool>,
22    #[serde(rename = "unit_count", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")]
23    pub unit_count: Option<Option<i32>>,
24    #[serde(rename = "on_free_trial", skip_serializing_if = "Option::is_none")]
25    pub on_free_trial: Option<bool>,
26    #[serde(rename = "free_trial_ends_on", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")]
27    pub free_trial_ends_on: Option<Option<String>>,
28    #[serde(rename = "updated_at", skip_serializing_if = "Option::is_none")]
29    pub updated_at: Option<String>,
30    #[serde(rename = "plan", skip_serializing_if = "Option::is_none")]
31    pub plan: Option<Box<models::MarketplaceListingPlan>>,
32}
33
34impl MarketplacePurchaseMarketplacePurchase {
35    pub fn new() -> MarketplacePurchaseMarketplacePurchase {
36        MarketplacePurchaseMarketplacePurchase {
37            billing_cycle: None,
38            next_billing_date: None,
39            is_installed: None,
40            unit_count: None,
41            on_free_trial: None,
42            free_trial_ends_on: None,
43            updated_at: None,
44            plan: None,
45        }
46    }
47}
48