1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
#[derive(Clone, Debug, PartialEq, Default, Serialize, Deserialize)]
pub struct SelectionReadOnlyRequestModel {
#[serde(rename = "id")]
pub id: String,
#[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>,
}
impl SelectionReadOnlyRequestModel {
pub fn new(id: String) -> SelectionReadOnlyRequestModel {
SelectionReadOnlyRequestModel {
id,
read_only: None,
hide_passwords: None,
}
}
}