pub struct SendInboxMessageRequestInteractive {
pub type: Type,
pub header: Option<Box<SendInboxMessageRequestInteractiveHeader>>,
pub body: Box<SendInboxMessageRequestInteractiveBody>,
pub footer: Option<Box<SendInboxMessageRequestInteractiveFooter>>,
pub action: Box<SendInboxMessageRequestInteractiveAction>,
}Expand description
SendInboxMessageRequestInteractive : WhatsApp-only. Rich interactive payload for list messages, CTA URL buttons, and Flow prompts. When set, takes priority over buttons and quickReplies. The shape mirrors Meta’s Cloud API interactive object verbatim, so any payload that works against Meta directly will also work here. Use buttons / quickReplies for simple button replies (WhatsApp’s interactive.type: \"button\") — the abstraction caps at 3 buttons and handles the auto-conversion for you. Use this field only for list, cta_url, or flow messages. Tap events come back via the message.received webhook with metadata.interactiveType set to list_reply or nfm_reply.
Fields§
§type: TypeWhich interactive layout to render.
header: Option<Box<SendInboxMessageRequestInteractiveHeader>>§body: Box<SendInboxMessageRequestInteractiveBody>§action: Box<SendInboxMessageRequestInteractiveAction>Implementations§
Source§impl SendInboxMessageRequestInteractive
impl SendInboxMessageRequestInteractive
Sourcepub fn new(
type: Type,
body: SendInboxMessageRequestInteractiveBody,
action: SendInboxMessageRequestInteractiveAction,
) -> SendInboxMessageRequestInteractive
pub fn new( type: Type, body: SendInboxMessageRequestInteractiveBody, action: SendInboxMessageRequestInteractiveAction, ) -> SendInboxMessageRequestInteractive
WhatsApp-only. Rich interactive payload for list messages, CTA URL buttons, and Flow prompts. When set, takes priority over buttons and quickReplies. The shape mirrors Meta’s Cloud API interactive object verbatim, so any payload that works against Meta directly will also work here. Use buttons / quickReplies for simple button replies (WhatsApp’s interactive.type: \"button\") — the abstraction caps at 3 buttons and handles the auto-conversion for you. Use this field only for list, cta_url, or flow messages. Tap events come back via the message.received webhook with metadata.interactiveType set to list_reply or nfm_reply.
Trait Implementations§
Source§impl Clone for SendInboxMessageRequestInteractive
impl Clone for SendInboxMessageRequestInteractive
Source§fn clone(&self) -> SendInboxMessageRequestInteractive
fn clone(&self) -> SendInboxMessageRequestInteractive
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 SendInboxMessageRequestInteractive
impl Default for SendInboxMessageRequestInteractive
Source§fn default() -> SendInboxMessageRequestInteractive
fn default() -> SendInboxMessageRequestInteractive
Source§impl<'de> Deserialize<'de> for SendInboxMessageRequestInteractive
impl<'de> Deserialize<'de> for SendInboxMessageRequestInteractive
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 SendInboxMessageRequestInteractive
impl PartialEq for SendInboxMessageRequestInteractive
Source§fn eq(&self, other: &SendInboxMessageRequestInteractive) -> bool
fn eq(&self, other: &SendInboxMessageRequestInteractive) -> bool
self and other values to be equal, and is used by ==.