bitwarden_api_api/models/
create_client_organization_request_body.rsuse serde::{Deserialize, Serialize};
use crate::models;
#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
pub struct CreateClientOrganizationRequestBody {
#[serde(rename = "name")]
pub name: String,
#[serde(rename = "ownerEmail")]
pub owner_email: String,
#[serde(rename = "planType", skip_serializing_if = "Option::is_none")]
pub plan_type: Option<models::PlanType>,
#[serde(rename = "seats", skip_serializing_if = "Option::is_none")]
pub seats: Option<i32>,
#[serde(rename = "key")]
pub key: String,
#[serde(rename = "keyPair")]
pub key_pair: Box<models::KeyPairRequestBody>,
#[serde(rename = "collectionName")]
pub collection_name: String,
}
impl CreateClientOrganizationRequestBody {
pub fn new(
name: String,
owner_email: String,
key: String,
key_pair: models::KeyPairRequestBody,
collection_name: String,
) -> CreateClientOrganizationRequestBody {
CreateClientOrganizationRequestBody {
name,
owner_email,
plan_type: None,
seats: None,
key,
key_pair: Box::new(key_pair),
collection_name,
}
}
}