bitwarden_api_api/models/
member_cipher_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#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
16pub struct MemberCipherDetailsResponseModel {
17    #[serde(
18        rename = "userGuid",
19        alias = "UserGuid",
20        skip_serializing_if = "Option::is_none"
21    )]
22    pub user_guid: Option<uuid::Uuid>,
23    #[serde(
24        rename = "userName",
25        alias = "UserName",
26        skip_serializing_if = "Option::is_none"
27    )]
28    pub user_name: Option<String>,
29    #[serde(
30        rename = "email",
31        alias = "Email",
32        skip_serializing_if = "Option::is_none"
33    )]
34    pub email: Option<String>,
35    #[serde(
36        rename = "usesKeyConnector",
37        alias = "UsesKeyConnector",
38        skip_serializing_if = "Option::is_none"
39    )]
40    pub uses_key_connector: Option<bool>,
41    /// A distinct list of the cipher ids associated with the organization member
42    #[serde(
43        rename = "cipherIds",
44        alias = "CipherIds",
45        skip_serializing_if = "Option::is_none"
46    )]
47    pub cipher_ids: Option<Vec<String>>,
48}
49
50impl MemberCipherDetailsResponseModel {
51    pub fn new() -> MemberCipherDetailsResponseModel {
52        MemberCipherDetailsResponseModel {
53            user_guid: None,
54            user_name: None,
55            email: None,
56            uses_key_connector: None,
57            cipher_ids: None,
58        }
59    }
60}