sonarr_api_rs/models/
health_resource.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: 3.0.0
7 * 
8 * Generated by: https://openapi-generator.tech
9 */
10
11use crate::models;
12use serde::{Deserialize, Serialize};
13
14#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
15pub struct HealthResource {
16    #[serde(rename = "id", skip_serializing_if = "Option::is_none")]
17    pub id: Option<i32>,
18    #[serde(rename = "source", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")]
19    pub source: Option<Option<String>>,
20    #[serde(rename = "type", skip_serializing_if = "Option::is_none")]
21    pub r#type: Option<models::HealthCheckResult>,
22    #[serde(rename = "message", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")]
23    pub message: Option<Option<String>>,
24    #[serde(rename = "wikiUrl", skip_serializing_if = "Option::is_none")]
25    pub wiki_url: Option<Box<models::HttpUri>>,
26}
27
28impl HealthResource {
29    pub fn new() -> HealthResource {
30        HealthResource {
31            id: None,
32            source: None,
33            r#type: None,
34            message: None,
35            wiki_url: None,
36        }
37    }
38}
39