bitwarden_api_api/models/
group_details_response_model.rs1use serde::{Deserialize, Serialize};
12
13use crate::models;
14
15#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
16pub struct GroupDetailsResponseModel {
17 #[serde(rename = "object", skip_serializing_if = "Option::is_none")]
18 pub object: Option<String>,
19 #[serde(rename = "id", skip_serializing_if = "Option::is_none")]
20 pub id: Option<uuid::Uuid>,
21 #[serde(rename = "organizationId", skip_serializing_if = "Option::is_none")]
22 pub organization_id: Option<uuid::Uuid>,
23 #[serde(rename = "name", skip_serializing_if = "Option::is_none")]
24 pub name: Option<String>,
25 #[serde(rename = "externalId", skip_serializing_if = "Option::is_none")]
26 pub external_id: Option<String>,
27 #[serde(rename = "collections", skip_serializing_if = "Option::is_none")]
28 pub collections: Option<Vec<models::SelectionReadOnlyResponseModel>>,
29}
30
31impl GroupDetailsResponseModel {
32 pub fn new() -> GroupDetailsResponseModel {
33 GroupDetailsResponseModel {
34 object: None,
35 id: None,
36 organization_id: None,
37 name: None,
38 external_id: None,
39 collections: None,
40 }
41 }
42}