sonarr-api-rs 3.0.0

Rust API wrapper for Sonarr
Documentation
/*
 * Sonarr
 *
 * Sonarr API docs - The v3 API docs apply to both v3 and v4 versions of Sonarr. Some functionality may only be available in v4 of the Sonarr application.
 *
 * The version of the OpenAPI document: 3.0.0
 * 
 * Generated by: https://openapi-generator.tech
 */

use crate::models;
use serde::{Deserialize, Serialize};

/// 
#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)]
pub enum PrivacyLevel {
    #[serde(rename = "normal")]
    Normal,
    #[serde(rename = "password")]
    Password,
    #[serde(rename = "apiKey")]
    ApiKey,
    #[serde(rename = "userName")]
    UserName,

}

impl std::fmt::Display for PrivacyLevel {
    fn fmt(&self, f: &mut std::fmt::Formatter) -> std::fmt::Result {
        match self {
            Self::Normal => write!(f, "normal"),
            Self::Password => write!(f, "password"),
            Self::ApiKey => write!(f, "apiKey"),
            Self::UserName => write!(f, "userName"),
        }
    }
}

impl Default for PrivacyLevel {
    fn default() -> PrivacyLevel {
        Self::Normal
    }
}