/*
 * Zernio API
 *
 * API reference for Zernio. Authenticate with a Bearer API key. Base URL: https://zernio.com/api
 *
 * The version of the OpenAPI document: 1.0.4
 * Contact: support@zernio.com
 * Generated by: https://openapi-generator.tech
 */

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

#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
pub struct ListSmsOptOuts200ResponseOptOutsInner {
    #[serde(rename = "phoneNumber", skip_serializing_if = "Option::is_none")]
    pub phone_number: Option<String>,
    #[serde(
        rename = "optedOutAt",
        default,
        with = "::serde_with::rust::double_option",
        skip_serializing_if = "Option::is_none"
    )]
    pub opted_out_at: Option<Option<String>>,
    /// The keyword they sent (e.g. STOP), when the carrier recorded one.
    #[serde(
        rename = "keyword",
        default,
        with = "::serde_with::rust::double_option",
        skip_serializing_if = "Option::is_none"
    )]
    pub keyword: Option<Option<String>>,
    /// Which of your numbers the recipient opted out from.
    #[serde(
        rename = "from",
        default,
        with = "::serde_with::rust::double_option",
        skip_serializing_if = "Option::is_none"
    )]
    pub from: Option<Option<String>>,
}

impl ListSmsOptOuts200ResponseOptOutsInner {
    pub fn new() -> ListSmsOptOuts200ResponseOptOutsInner {
        ListSmsOptOuts200ResponseOptOutsInner {
            phone_number: None,
            opted_out_at: None,
            keyword: None,
            from: None,
        }
    }
}
