enbbox 1.0.1

Notification infrastructure API — open-source alternative to Novu/Courier
Documentation
/*
 * enbbox API
 *
 * Notification infrastructure API — open-source alternative to Novu/Courier
 *
 * The version of the OpenAPI document: 1.0.0
 * 
 * Generated by: https://openapi-generator.tech
 */

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

/// DnsSettings : DNS configuration for receiving inbound emails via MX records.
#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
pub struct DnsSettings {
    /// Domain used for inbound email parsing.
    #[serde(rename = "inbound_parse_domain", skip_serializing_if = "Option::is_none")]
    pub inbound_parse_domain: Option<String>,
    /// Whether the MX record has been verified.
    #[serde(rename = "mx_record_configured", skip_serializing_if = "Option::is_none")]
    pub mx_record_configured: Option<bool>,
}

impl DnsSettings {
    /// DNS configuration for receiving inbound emails via MX records.
    pub fn new() -> DnsSettings {
        DnsSettings {
            inbound_parse_domain: None,
            mx_record_configured: None,
        }
    }
}