sonarr_api_rs/models/
privacy_level.rs1use crate::models;
12use serde::{Deserialize, Serialize};
13
14#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)]
16pub enum PrivacyLevel {
17 #[serde(rename = "normal")]
18 Normal,
19 #[serde(rename = "password")]
20 Password,
21 #[serde(rename = "apiKey")]
22 ApiKey,
23 #[serde(rename = "userName")]
24 UserName,
25
26}
27
28impl std::fmt::Display for PrivacyLevel {
29 fn fmt(&self, f: &mut std::fmt::Formatter) -> std::fmt::Result {
30 match self {
31 Self::Normal => write!(f, "normal"),
32 Self::Password => write!(f, "password"),
33 Self::ApiKey => write!(f, "apiKey"),
34 Self::UserName => write!(f, "userName"),
35 }
36 }
37}
38
39impl Default for PrivacyLevel {
40 fn default() -> PrivacyLevel {
41 Self::Normal
42 }
43}
44