pub struct SendInboxMessageRequestButtonsInner {
pub type: Type,
pub title: String,
pub url: Option<String>,
pub payload: Option<String>,
pub phone: Option<String>,
}Fields§
§type: TypeButton type. phone is Facebook only. Ignored on WhatsApp (buttons always render as reply buttons).
title: StringButton label (max 20 chars)
url: Option<String>URL for url-type buttons (Facebook/Instagram only)
payload: Option<String>Payload for postback-type buttons. On WhatsApp, this is the reply ID returned on the message.received webhook when the button is tapped.
phone: Option<String>Phone number for phone-type buttons (Facebook only)
Implementations§
Source§impl SendInboxMessageRequestButtonsInner
impl SendInboxMessageRequestButtonsInner
pub fn new(type: Type, title: String) -> SendInboxMessageRequestButtonsInner
Trait Implementations§
Source§impl Clone for SendInboxMessageRequestButtonsInner
impl Clone for SendInboxMessageRequestButtonsInner
Source§fn clone(&self) -> SendInboxMessageRequestButtonsInner
fn clone(&self) -> SendInboxMessageRequestButtonsInner
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Default for SendInboxMessageRequestButtonsInner
impl Default for SendInboxMessageRequestButtonsInner
Source§fn default() -> SendInboxMessageRequestButtonsInner
fn default() -> SendInboxMessageRequestButtonsInner
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for SendInboxMessageRequestButtonsInner
impl<'de> Deserialize<'de> for SendInboxMessageRequestButtonsInner
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>,
Deserialize this value from the given Serde deserializer. Read more
impl StructuralPartialEq for SendInboxMessageRequestButtonsInner
Auto Trait Implementations§
impl Freeze for SendInboxMessageRequestButtonsInner
impl RefUnwindSafe for SendInboxMessageRequestButtonsInner
impl Send for SendInboxMessageRequestButtonsInner
impl Sync for SendInboxMessageRequestButtonsInner
impl Unpin for SendInboxMessageRequestButtonsInner
impl UnsafeUnpin for SendInboxMessageRequestButtonsInner
impl UnwindSafe for SendInboxMessageRequestButtonsInner
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more