radarr_api_rs/models/
privacy_level.rs1#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)]
14pub enum PrivacyLevel {
15 #[serde(rename = "normal")]
16 Normal,
17 #[serde(rename = "password")]
18 Password,
19 #[serde(rename = "apiKey")]
20 ApiKey,
21 #[serde(rename = "userName")]
22 UserName,
23
24}
25
26impl ToString for PrivacyLevel {
27 fn to_string(&self) -> String {
28 match self {
29 Self::Normal => String::from("normal"),
30 Self::Password => String::from("password"),
31 Self::ApiKey => String::from("apiKey"),
32 Self::UserName => String::from("userName"),
33 }
34 }
35}
36
37impl Default for PrivacyLevel {
38 fn default() -> PrivacyLevel {
39 Self::Normal
40 }
41}
42
43
44
45