pub struct GenericAttachment {
pub attachment_link_url: Option<String>,
pub buttons: Option<Vec<Button>>,
pub image_url: Option<String>,
pub sub_title: Option<String>,
pub title: Option<String>,
}
Expand description
Represents an option rendered to the user when a prompt is shown. It could be an image, a button, a link, or text.
Fields§
§attachment_link_url: Option<String>
The URL of an attachment to the response card.
The list of options to show to the user.
image_url: Option<String>
The URL of an image that is displayed to the user.
sub_title: Option<String>
The subtitle shown below the title.
title: Option<String>
The title of the option.
Trait Implementations§
Source§impl Clone for GenericAttachment
impl Clone for GenericAttachment
Source§fn clone(&self) -> GenericAttachment
fn clone(&self) -> GenericAttachment
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for GenericAttachment
impl Debug for GenericAttachment
Source§impl Default for GenericAttachment
impl Default for GenericAttachment
Source§fn default() -> GenericAttachment
fn default() -> GenericAttachment
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for GenericAttachment
impl<'de> Deserialize<'de> for GenericAttachment
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
Source§impl PartialEq for GenericAttachment
impl PartialEq for GenericAttachment
impl StructuralPartialEq for GenericAttachment
Auto Trait Implementations§
impl Freeze for GenericAttachment
impl RefUnwindSafe for GenericAttachment
impl Send for GenericAttachment
impl Sync for GenericAttachment
impl Unpin for GenericAttachment
impl UnwindSafe for GenericAttachment
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