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
}
}