bitwarden_api_api/models/upgrade_premium_to_organization_response_model.rs
1/*
2 * Bitwarden Internal API
3 *
4 * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
5 *
6 * The version of the OpenAPI document: latest
7 *
8 * Generated by: https://openapi-generator.tech
9 */
10
11use serde::{Deserialize, Serialize};
12
13use crate::models;
14
15/// UpgradePremiumToOrganizationResponseModel : Response model containing the ID of the organization
16/// created by upgrading a Premium subscription.
17#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
18pub struct UpgradePremiumToOrganizationResponseModel {
19 /// The ID of the newly created organization.
20 #[serde(
21 rename = "organizationId",
22 alias = "OrganizationId",
23 skip_serializing_if = "Option::is_none"
24 )]
25 pub organization_id: Option<uuid::Uuid>,
26}
27
28impl UpgradePremiumToOrganizationResponseModel {
29 /// Response model containing the ID of the organization created by upgrading a Premium
30 /// subscription.
31 pub fn new() -> UpgradePremiumToOrganizationResponseModel {
32 UpgradePremiumToOrganizationResponseModel {
33 organization_id: None,
34 }
35 }
36}