foxclient 6.0.8

Warning: Please add a custom user agent header to your requests. This would help us fighting against DDoS attacks in future, while keeping your application's access to the API. In future, this may be a mandatory requirement. To reduce the system load, the API endpoints are rate limited. The default limit is 30 requests per minute. Contact admin@orangefox.tech if you need a higher limit. The requests may be logged for analytics and development purposes.
Documentation
/*
 * Fox API
 *
 * Warning: Please add a custom user agent header to your requests. This would help us fighting against DDoS attacks in future, while keeping your application's access to the API. In future, this may be a mandatory requirement.  To reduce the system load, the API endpoints are rate limited. The default limit is 30 requests per minute. Contact admin@orangefox.tech if you need a higher limit.  The requests may be logged for analytics and development purposes. 
 *
 * The version of the OpenAPI document: 6.0.8
 * Contact: admin@orangefox.tech
 * Generated by: https://openapi-generator.tech
 */

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

/// UptimeHealthHost : A single FoxHealth host (the internal endpoint is intentionally omitted).
#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
pub struct UptimeHealthHost {
    #[serde(rename = "errorText", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")]
    pub error_text: Option<Option<String>>,
    #[serde(rename = "isOk")]
    pub is_ok: bool,
    #[serde(rename = "isOptional")]
    pub is_optional: bool,
    #[serde(rename = "nickname")]
    pub nickname: String,
}

impl UptimeHealthHost {
    /// A single FoxHealth host (the internal endpoint is intentionally omitted).
    pub fn new(is_ok: bool, is_optional: bool, nickname: String) -> UptimeHealthHost {
        UptimeHealthHost {
            error_text: None,
            is_ok,
            is_optional,
            nickname,
        }
    }
}