sonarr/models/
authentication_required_type.rs

1/*
2 * Sonarr
3 *
4 * 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.
5 *
6 * The version of the OpenAPI document: v4.0.15.2941
7 * 
8 * Generated by: https://openapi-generator.tech
9 */
10
11use crate::models;
12use serde::{Deserialize, Serialize};
13
14/// 
15#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)]
16pub enum AuthenticationRequiredType {
17    #[serde(rename = "enabled")]
18    Enabled,
19    #[serde(rename = "disabledForLocalAddresses")]
20    DisabledForLocalAddresses,
21
22}
23
24impl std::fmt::Display for AuthenticationRequiredType {
25    fn fmt(&self, f: &mut std::fmt::Formatter) -> std::fmt::Result {
26        match self {
27            Self::Enabled => write!(f, "enabled"),
28            Self::DisabledForLocalAddresses => write!(f, "disabledForLocalAddresses"),
29        }
30    }
31}
32
33impl Default for AuthenticationRequiredType {
34    fn default() -> AuthenticationRequiredType {
35        Self::Enabled
36    }
37}
38