/*
* 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.13.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 GetWhatsAppTemplate200ResponseTemplate {
/// Meta template id. Unique per language variant; usable on /v1/whatsapp/templates/id/{templateId}.
#[serde(rename = "id", skip_serializing_if = "Option::is_none")]
pub id: Option<String>,
#[serde(rename = "name", skip_serializing_if = "Option::is_none")]
pub name: Option<String>,
#[serde(rename = "status", skip_serializing_if = "Option::is_none")]
pub status: Option<String>,
#[serde(rename = "category", skip_serializing_if = "Option::is_none")]
pub category: Option<String>,
/// The variant actually returned.
#[serde(rename = "language", skip_serializing_if = "Option::is_none")]
pub language: Option<String>,
#[serde(rename = "components", skip_serializing_if = "Option::is_none")]
pub components: Option<Vec<serde_json::Value>>,
/// Only when a custom TTL is set; absent while the category default applies.
#[serde(
rename = "message_send_ttl_seconds",
skip_serializing_if = "Option::is_none"
)]
pub message_send_ttl_seconds: Option<i32>,
/// Only when status is REJECTED.
#[serde(rename = "rejected_reason", skip_serializing_if = "Option::is_none")]
pub rejected_reason: Option<String>,
/// Post-approval quality (GREEN/YELLOW/RED), when Meta reports one.
#[serde(rename = "quality_score", skip_serializing_if = "Option::is_none")]
pub quality_score: Option<serde_json::Value>,
}
impl GetWhatsAppTemplate200ResponseTemplate {
pub fn new() -> GetWhatsAppTemplate200ResponseTemplate {
GetWhatsAppTemplate200ResponseTemplate {
id: None,
name: None,
status: None,
category: None,
language: None,
components: None,
message_send_ttl_seconds: None,
rejected_reason: None,
quality_score: None,
}
}
}