pub struct QuickReply {
pub label: String,
pub description: Option<String>,
pub metadata: String,
}Expand description
A Quick Reply attached to a message to request structured input from a user.
For more information about Quick Replies, see the quick_reply_option function on
DraftMessage.
Fields§
§label: StringThe label shown to the user. When the user selects this Quick Reply, the label will be sent
as the text of the reply message.
description: Option<String>An optional description that accompanies a Quick Reply.
metadata: StringMetadata that accompanies this Quick Reply. Metadata is not shown to the user, but is
available in the quick_reply_response when the user selects it.
Trait Implementations§
Source§impl Debug for QuickReply
impl Debug for QuickReply
Source§impl<'de> Deserialize<'de> for QuickReply
impl<'de> Deserialize<'de> for QuickReply
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
Auto Trait Implementations§
impl Freeze for QuickReply
impl RefUnwindSafe for QuickReply
impl Send for QuickReply
impl Sync for QuickReply
impl Unpin for QuickReply
impl UnwindSafe for QuickReply
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