pub struct WebhookPayloadMessageMetadata {
pub quick_reply_payload: Option<String>,
pub postback_payload: Option<String>,
pub postback_title: Option<String>,
pub callback_data: Option<String>,
pub interactive_type: Option<InteractiveType>,
pub interactive_id: Option<String>,
pub button_payload: Option<String>,
pub flow_response_json: Option<String>,
pub flow_response_data: Option<HashMap<String, Value>>,
}Expand description
WebhookPayloadMessageMetadata : Interactive message metadata (present when message is a quick reply tap, postback button tap, or inline keyboard callback)
Fields§
§quick_reply_payload: Option<String>Payload from a quick reply tap (Facebook/Instagram Messenger).
postback_payload: Option<String>Payload from a postback button tap (Facebook/Instagram Messenger).
postback_title: Option<String>Title of the tapped postback button (Facebook/Instagram Messenger).
callback_data: Option<String>Callback data from an inline keyboard button tap (Telegram).
interactive_type: Option<InteractiveType>WhatsApp only. Which kind of interactive reply the user sent: button_reply (tap on an interactive button), list_reply (tap on a list row), or nfm_reply (a WhatsApp Flow submission).
interactive_id: Option<String>WhatsApp only. The id of the tapped button or list row, matching the id you supplied when the message was sent. Not set for Flow responses.
WhatsApp only. Payload attached to a tapped template button. Template buttons emit a plain button webhook (not an interactive reply), so interactiveType is empty while this field is populated.
flow_response_json: Option<String>WhatsApp only. Raw nfm_reply.response_json string returned by a Flow submission. Useful if you need the exact wire payload; for typed access use flowResponseData instead.
flow_response_data: Option<HashMap<String, Value>>WhatsApp only. Parsed Flow response JSON. Populated when flowResponseJson is valid JSON; otherwise omitted. Keys and value types depend on the specific Flow that was submitted.
Implementations§
Source§impl WebhookPayloadMessageMetadata
impl WebhookPayloadMessageMetadata
Sourcepub fn new() -> WebhookPayloadMessageMetadata
pub fn new() -> WebhookPayloadMessageMetadata
Interactive message metadata (present when message is a quick reply tap, postback button tap, or inline keyboard callback)
Trait Implementations§
Source§impl Clone for WebhookPayloadMessageMetadata
impl Clone for WebhookPayloadMessageMetadata
Source§fn clone(&self) -> WebhookPayloadMessageMetadata
fn clone(&self) -> WebhookPayloadMessageMetadata
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Default for WebhookPayloadMessageMetadata
impl Default for WebhookPayloadMessageMetadata
Source§fn default() -> WebhookPayloadMessageMetadata
fn default() -> WebhookPayloadMessageMetadata
Source§impl<'de> Deserialize<'de> for WebhookPayloadMessageMetadata
impl<'de> Deserialize<'de> for WebhookPayloadMessageMetadata
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Source§impl PartialEq for WebhookPayloadMessageMetadata
impl PartialEq for WebhookPayloadMessageMetadata
Source§fn eq(&self, other: &WebhookPayloadMessageMetadata) -> bool
fn eq(&self, other: &WebhookPayloadMessageMetadata) -> bool
self and other values to be equal, and is used by ==.