Skip to main content

late/models/
edit_inbox_message_request_reply_markup.rs

1/*
2 * Zernio API
3 *
4 * API reference for Zernio. Authenticate with a Bearer API key. Base URL: https://zernio.com/api
5 *
6 * The version of the OpenAPI document: 1.0.1
7 * Contact: support@zernio.com
8 * Generated by: https://openapi-generator.tech
9 */
10
11use crate::models;
12use serde::{Deserialize, Serialize};
13
14/// EditInboxMessageRequestReplyMarkup : New inline keyboard markup
15#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
16pub struct EditInboxMessageRequestReplyMarkup {
17    #[serde(rename = "type", skip_serializing_if = "Option::is_none")]
18    pub r#type: Option<Type>,
19    #[serde(rename = "keyboard", skip_serializing_if = "Option::is_none")]
20    pub keyboard: Option<Vec<Vec<models::EditInboxMessageRequestReplyMarkupKeyboardInnerInner>>>,
21}
22
23impl EditInboxMessageRequestReplyMarkup {
24    /// New inline keyboard markup
25    pub fn new() -> EditInboxMessageRequestReplyMarkup {
26        EditInboxMessageRequestReplyMarkup {
27            r#type: None,
28            keyboard: None,
29        }
30    }
31}
32///
33#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)]
34pub enum Type {
35    #[serde(rename = "inline_keyboard")]
36    InlineKeyboard,
37}
38
39impl Default for Type {
40    fn default() -> Type {
41        Self::InlineKeyboard
42    }
43}