/*
* Zernio API
*
* API reference for Zernio. Authenticate with a Bearer API key. Base URL: https://zernio.com/api Versioning and deprecation: all endpoints are versioned in the URL path (current version: /v1). Breaking changes only ship in a new path version; existing versions keep working. Deprecated operations are marked 'deprecated: true' in this spec and announced in the changelog (https://zernio.com/changelog) before removal. Errors: every 4xx/5xx response is application/json with a machine-readable 'code' and a human-readable 'error' message (see the ErrorResponse schema).
*
* The version of the OpenAPI document: 1.66.0
* 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 CreateInboxConversationRequestTemplateCardsInner {
/// The card's card_index in the approved template.
#[serde(rename = "cardIndex")]
pub card_index: i32,
/// Values for this card's own body variables, in the card's own {{1}}, {{2}}, ... order (or named-slot order of appearance).
#[serde(rename = "params", skip_serializing_if = "Option::is_none")]
pub params: Option<Vec<String>>,
#[serde(rename = "headerMedia", skip_serializing_if = "Option::is_none")]
pub header_media:
Option<Box<models::CreateInboxConversationRequestTemplateCardsInnerHeaderMedia>>,
/// Values for this card's own buttons, each addressed by the button's index within the card.
#[serde(rename = "buttons", skip_serializing_if = "Option::is_none")]
pub buttons: Option<Vec<models::CreateInboxConversationRequestTemplateCardsInnerButtonsInner>>,
}
impl CreateInboxConversationRequestTemplateCardsInner {
pub fn new(card_index: i32) -> CreateInboxConversationRequestTemplateCardsInner {
CreateInboxConversationRequestTemplateCardsInner {
card_index,
params: None,
header_media: None,
buttons: None,
}
}
}