bitwarden_api_api/models/
collection_details_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/// CollectionDetailsResponseModel : Response model for a collection that is always assigned to the
16/// requesting user, including permissions.
17#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
18pub struct CollectionDetailsResponseModel {
19    #[serde(rename = "object", skip_serializing_if = "Option::is_none")]
20    pub object: Option<String>,
21    #[serde(rename = "id", skip_serializing_if = "Option::is_none")]
22    pub id: Option<uuid::Uuid>,
23    #[serde(rename = "organizationId", skip_serializing_if = "Option::is_none")]
24    pub organization_id: Option<uuid::Uuid>,
25    #[serde(rename = "name", skip_serializing_if = "Option::is_none")]
26    pub name: Option<String>,
27    #[serde(rename = "externalId", skip_serializing_if = "Option::is_none")]
28    pub external_id: Option<String>,
29    #[serde(rename = "readOnly", skip_serializing_if = "Option::is_none")]
30    pub read_only: Option<bool>,
31    #[serde(rename = "hidePasswords", skip_serializing_if = "Option::is_none")]
32    pub hide_passwords: Option<bool>,
33    #[serde(rename = "manage", skip_serializing_if = "Option::is_none")]
34    pub manage: Option<bool>,
35}
36
37impl CollectionDetailsResponseModel {
38    /// Response model for a collection that is always assigned to the requesting user, including
39    /// permissions.
40    pub fn new() -> CollectionDetailsResponseModel {
41        CollectionDetailsResponseModel {
42            object: None,
43            id: None,
44            organization_id: None,
45            name: None,
46            external_id: None,
47            read_only: None,
48            hide_passwords: None,
49            manage: None,
50        }
51    }
52}