/*
 * 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 SendInboxMessageRequestInteractiveActionOneOf1Parameters {
    /// Button label (max 20 chars).
    #[serde(rename = "display_text")]
    pub display_text: String,
    /// Target URL opened when the user taps the button.
    #[serde(rename = "url")]
    pub url: String,
}

impl SendInboxMessageRequestInteractiveActionOneOf1Parameters {
    pub fn new(
        display_text: String,
        url: String,
    ) -> SendInboxMessageRequestInteractiveActionOneOf1Parameters {
        SendInboxMessageRequestInteractiveActionOneOf1Parameters { display_text, url }
    }
}
