antimatter_api 2.0.13

Interact with the Antimatter Cloud API
Documentation
/*
 * Antimatter Public API
 *
 * Interact with the Antimatter Cloud API
 *
 * The version of the OpenAPI document: 2.0.13
 * Contact: support@antimatter.io
 * Generated by: https://openapi-generator.tech
 */

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

#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
pub struct DomainStatusNotificationsInner {
    #[serde(rename = "summary")]
    pub summary: String,
    #[serde(rename = "description")]
    pub description: String,
    #[serde(rename = "type")]
    pub r#type: Type,
}

impl DomainStatusNotificationsInner {
    pub fn new(summary: String, description: String, r#type: Type) -> DomainStatusNotificationsInner {
        DomainStatusNotificationsInner {
            summary,
            description,
            r#type,
        }
    }
}
/// 
#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)]
pub enum Type {
    #[serde(rename = "info")]
    Info,
    #[serde(rename = "alert")]
    Alert,
}

impl Default for Type {
    fn default() -> Type {
        Self::Info
    }
}