openapi_github/models/
marketplace_purchase_marketplace_pending_change.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 MarketplacePurchaseMarketplacePendingChange {
16    #[serde(rename = "is_installed", skip_serializing_if = "Option::is_none")]
17    pub is_installed: Option<bool>,
18    #[serde(rename = "effective_date", skip_serializing_if = "Option::is_none")]
19    pub effective_date: Option<String>,
20    #[serde(rename = "unit_count", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")]
21    pub unit_count: Option<Option<i32>>,
22    #[serde(rename = "id", skip_serializing_if = "Option::is_none")]
23    pub id: Option<i32>,
24    #[serde(rename = "plan", skip_serializing_if = "Option::is_none")]
25    pub plan: Option<Box<models::MarketplaceListingPlan>>,
26}
27
28impl MarketplacePurchaseMarketplacePendingChange {
29    pub fn new() -> MarketplacePurchaseMarketplacePendingChange {
30        MarketplacePurchaseMarketplacePendingChange {
31            is_installed: None,
32            effective_date: None,
33            unit_count: None,
34            id: None,
35            plan: None,
36        }
37    }
38}
39