/*
 * 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.1
 * 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 SendInboxMessageRequestInteractiveActionOneOfSectionsInnerRowsInner {
    /// Identifier returned in the webhook as metadata.interactiveId (max 200 chars).
    #[serde(rename = "id")]
    pub id: String,
    /// Row label (max 24 chars).
    #[serde(rename = "title")]
    pub title: String,
    /// Optional description below the title (max 72 chars).
    #[serde(rename = "description", skip_serializing_if = "Option::is_none")]
    pub description: Option<String>,
}

impl SendInboxMessageRequestInteractiveActionOneOfSectionsInnerRowsInner {
    pub fn new(
        id: String,
        title: String,
    ) -> SendInboxMessageRequestInteractiveActionOneOfSectionsInnerRowsInner {
        SendInboxMessageRequestInteractiveActionOneOfSectionsInnerRowsInner {
            id,
            title,
            description: None,
        }
    }
}
