sonarr_api_rs/models/
language_profile_item_resource.rs1use crate::models;
12use serde::{Deserialize, Serialize};
13
14#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
15pub struct LanguageProfileItemResource {
16 #[serde(rename = "id", skip_serializing_if = "Option::is_none")]
17 pub id: Option<i32>,
18 #[serde(rename = "language", skip_serializing_if = "Option::is_none")]
19 pub language: Option<Box<models::Language>>,
20 #[serde(rename = "allowed", skip_serializing_if = "Option::is_none")]
21 pub allowed: Option<bool>,
22}
23
24impl LanguageProfileItemResource {
25 pub fn new() -> LanguageProfileItemResource {
26 LanguageProfileItemResource {
27 id: None,
28 language: None,
29 allowed: None,
30 }
31 }
32}
33