bitwarden_api_api/models/
selection_read_only_request_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 SelectionReadOnlyRequestModel {
17    #[serde(rename = "id", alias = "Id")]
18    pub id: uuid::Uuid,
19    #[serde(
20        rename = "readOnly",
21        alias = "ReadOnly",
22        skip_serializing_if = "Option::is_none"
23    )]
24    pub read_only: Option<bool>,
25    #[serde(
26        rename = "hidePasswords",
27        alias = "HidePasswords",
28        skip_serializing_if = "Option::is_none"
29    )]
30    pub hide_passwords: Option<bool>,
31    #[serde(
32        rename = "manage",
33        alias = "Manage",
34        skip_serializing_if = "Option::is_none"
35    )]
36    pub manage: Option<bool>,
37}
38
39impl SelectionReadOnlyRequestModel {
40    pub fn new(id: uuid::Uuid) -> SelectionReadOnlyRequestModel {
41        SelectionReadOnlyRequestModel {
42            id,
43            read_only: None,
44            hide_passwords: None,
45            manage: None,
46        }
47    }
48}