bitwarden_api_api/models/
selection_read_only_request_model.rsuse serde::{Deserialize, Serialize};
use crate::models;
#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
pub struct SelectionReadOnlyRequestModel {
#[serde(rename = "id")]
pub id: uuid::Uuid,
#[serde(rename = "readOnly", skip_serializing_if = "Option::is_none")]
pub read_only: Option<bool>,
#[serde(rename = "hidePasswords", skip_serializing_if = "Option::is_none")]
pub hide_passwords: Option<bool>,
#[serde(rename = "manage", skip_serializing_if = "Option::is_none")]
pub manage: Option<bool>,
}
impl SelectionReadOnlyRequestModel {
pub fn new(id: uuid::Uuid) -> SelectionReadOnlyRequestModel {
SelectionReadOnlyRequestModel {
id,
read_only: None,
hide_passwords: None,
manage: None,
}
}
}