linkbreakers 1.101.6

Official Rust SDK for the Linkbreakers API
Documentation
/*
 * Linkbreakers API
 *
 * This is a documentation of all the APIs of Linkbreakers
 *
 * The version of the OpenAPI document: 1.101.6
 * 
 * Generated by: https://openapi-generator.tech
 */

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

/// CustomDomainStatus : The status of a custom domain   - STATUS_UNSPECIFIED: The status is not specified  - STATUS_INACTIVE: The domain is inactive. It was created but not checked yet.  - STATUS_DOMAIN_PENDING: The domain is pending. Last time it was checked, it was not pointing to the correct Linkbreakers subdomain.  - STATUS_VERIFICATION_PENDING: The domain is pending verification. Please verify through TXT record.  - STATUS_CERTIFICATE_PENDING: The domain is pending certificate. The SSL certificate is not yet ready.  - STATUS_ACTIVE: The domain is fully active
/// The status of a custom domain   - STATUS_UNSPECIFIED: The status is not specified  - STATUS_INACTIVE: The domain is inactive. It was created but not checked yet.  - STATUS_DOMAIN_PENDING: The domain is pending. Last time it was checked, it was not pointing to the correct Linkbreakers subdomain.  - STATUS_VERIFICATION_PENDING: The domain is pending verification. Please verify through TXT record.  - STATUS_CERTIFICATE_PENDING: The domain is pending certificate. The SSL certificate is not yet ready.  - STATUS_ACTIVE: The domain is fully active
#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)]
pub enum CustomDomainStatus {
    #[serde(rename = "STATUS_UNSPECIFIED")]
    StatusUnspecified,
    #[serde(rename = "STATUS_INACTIVE")]
    StatusInactive,
    #[serde(rename = "STATUS_DOMAIN_PENDING")]
    StatusDomainPending,
    #[serde(rename = "STATUS_VERIFICATION_PENDING")]
    StatusVerificationPending,
    #[serde(rename = "STATUS_CERTIFICATE_PENDING")]
    StatusCertificatePending,
    #[serde(rename = "STATUS_ACTIVE")]
    StatusActive,

}

impl std::fmt::Display for CustomDomainStatus {
    fn fmt(&self, f: &mut std::fmt::Formatter) -> std::fmt::Result {
        match self {
            Self::StatusUnspecified => write!(f, "STATUS_UNSPECIFIED"),
            Self::StatusInactive => write!(f, "STATUS_INACTIVE"),
            Self::StatusDomainPending => write!(f, "STATUS_DOMAIN_PENDING"),
            Self::StatusVerificationPending => write!(f, "STATUS_VERIFICATION_PENDING"),
            Self::StatusCertificatePending => write!(f, "STATUS_CERTIFICATE_PENDING"),
            Self::StatusActive => write!(f, "STATUS_ACTIVE"),
        }
    }
}

impl Default for CustomDomainStatus {
    fn default() -> CustomDomainStatus {
        Self::StatusUnspecified
    }
}