1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
/*
* 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};
/// WebhookPayloadMessageMetadataUnsupported : WhatsApp only. Meta's own reason this message has no renderable body. Present when Meta attached an error to the inbound payload; in practice the `unsupported`, `errors` and `unknown` types (code 131051: message type currently not supported). `text` on those messages is the fixed `[Unsupported message]` placeholder.
#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
pub struct WebhookPayloadMessageMetadataUnsupported {
/// Meta's numeric error code (e.g. 131051).
#[serde(rename = "code", skip_serializing_if = "Option::is_none")]
pub code: Option<i32>,
/// Meta's short error title.
#[serde(rename = "title", skip_serializing_if = "Option::is_none")]
pub title: Option<String>,
/// Meta's human-readable error detail string.
#[serde(rename = "details", skip_serializing_if = "Option::is_none")]
pub details: Option<String>,
}
impl WebhookPayloadMessageMetadataUnsupported {
/// WhatsApp only. Meta's own reason this message has no renderable body. Present when Meta attached an error to the inbound payload; in practice the `unsupported`, `errors` and `unknown` types (code 131051: message type currently not supported). `text` on those messages is the fixed `[Unsupported message]` placeholder.
pub fn new() -> WebhookPayloadMessageMetadataUnsupported {
WebhookPayloadMessageMetadataUnsupported {
code: None,
title: None,
details: None,
}
}
}