zernio 0.0.132

API reference for Zernio. Authenticate with a Bearer API key. Base URL: https://zernio.com/api
Documentation
/*
 * 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};

/// SendInboxMessageRequestReplyMarkup : Telegram-native keyboard markup. Ignored on other platforms.
#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
pub struct SendInboxMessageRequestReplyMarkup {
    /// Keyboard type
    #[serde(rename = "type", skip_serializing_if = "Option::is_none")]
    pub r#type: Option<Type>,
    /// Array of rows, each row is an array of buttons
    #[serde(rename = "keyboard", skip_serializing_if = "Option::is_none")]
    pub keyboard: Option<Vec<Vec<models::SendInboxMessageRequestReplyMarkupKeyboardInnerInner>>>,
    /// Hide keyboard after use (reply_keyboard only)
    #[serde(rename = "oneTime", skip_serializing_if = "Option::is_none")]
    pub one_time: Option<bool>,
}

impl SendInboxMessageRequestReplyMarkup {
    /// Telegram-native keyboard markup. Ignored on other platforms.
    pub fn new() -> SendInboxMessageRequestReplyMarkup {
        SendInboxMessageRequestReplyMarkup {
            r#type: None,
            keyboard: None,
            one_time: None,
        }
    }
}
/// Keyboard type
#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)]
pub enum Type {
    #[serde(rename = "inline_keyboard")]
    InlineKeyboard,
    #[serde(rename = "reply_keyboard")]
    ReplyKeyboard,
}

impl Default for Type {
    fn default() -> Type {
        Self::InlineKeyboard
    }
}