Struct aws_sdk_lexmodelsv2::model::ImageResponseCard
source · [−]#[non_exhaustive]pub struct ImageResponseCard {
pub title: Option<String>,
pub subtitle: Option<String>,
pub image_url: Option<String>,
pub buttons: Option<Vec<Button>>,
}Expand description
A card that is shown to the user by a messaging platform. You define the contents of the card, the card is displayed by the platform.
When you use a response card, the response from the user is constrained to the text associated with a button on the card.
Fields (Non-exhaustive)
This struct is marked as non-exhaustive
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.title: Option<String>The title to display on the response card. The format of the title is determined by the platform displaying the response card.
subtitle: Option<String>The subtitle to display on the response card. The format of the subtitle is determined by the platform displaying the response card.
image_url: Option<String>The URL of an image to display on the response card. The image URL must be publicly available so that the platform displaying the response card has access to the image.
A list of buttons that should be displayed on the response card. The arrangement of the buttons is determined by the platform that displays the button.
Implementations
sourceimpl ImageResponseCard
impl ImageResponseCard
sourcepub fn title(&self) -> Option<&str>
pub fn title(&self) -> Option<&str>
The title to display on the response card. The format of the title is determined by the platform displaying the response card.
sourcepub fn subtitle(&self) -> Option<&str>
pub fn subtitle(&self) -> Option<&str>
The subtitle to display on the response card. The format of the subtitle is determined by the platform displaying the response card.
sourcepub fn image_url(&self) -> Option<&str>
pub fn image_url(&self) -> Option<&str>
The URL of an image to display on the response card. The image URL must be publicly available so that the platform displaying the response card has access to the image.
A list of buttons that should be displayed on the response card. The arrangement of the buttons is determined by the platform that displays the button.
sourceimpl ImageResponseCard
impl ImageResponseCard
sourcepub fn builder() -> Builder
pub fn builder() -> Builder
Creates a new builder-style object to manufacture ImageResponseCard
Trait Implementations
sourceimpl Clone for ImageResponseCard
impl Clone for ImageResponseCard
sourcefn clone(&self) -> ImageResponseCard
fn clone(&self) -> ImageResponseCard
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source. Read more
sourceimpl Debug for ImageResponseCard
impl Debug for ImageResponseCard
sourceimpl PartialEq<ImageResponseCard> for ImageResponseCard
impl PartialEq<ImageResponseCard> for ImageResponseCard
sourcefn eq(&self, other: &ImageResponseCard) -> bool
fn eq(&self, other: &ImageResponseCard) -> bool
This method tests for self and other values to be equal, and is used
by ==. Read more
sourcefn ne(&self, other: &ImageResponseCard) -> bool
fn ne(&self, other: &ImageResponseCard) -> bool
This method tests for !=.
impl StructuralPartialEq for ImageResponseCard
Auto Trait Implementations
impl RefUnwindSafe for ImageResponseCard
impl Send for ImageResponseCard
impl Sync for ImageResponseCard
impl Unpin for ImageResponseCard
impl UnwindSafe for ImageResponseCard
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcepub fn borrow_mut(&mut self) -> &mut T
pub fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> Instrument for T
impl<T> Instrument for T
sourcefn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
sourcefn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcepub fn to_owned(&self) -> T
pub fn to_owned(&self) -> T
Creates owned data from borrowed data, usually by cloning. Read more
sourcepub fn clone_into(&self, target: &mut T)
pub fn clone_into(&self, target: &mut T)
toowned_clone_into)Uses borrowed data to replace owned data, usually by cloning. Read more
sourceimpl<T> WithSubscriber for T
impl<T> WithSubscriber for T
sourcefn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
Attaches the provided Subscriber to this type, returning a
WithDispatch wrapper. Read more
sourcefn with_current_subscriber(self) -> WithDispatch<Self>
fn with_current_subscriber(self) -> WithDispatch<Self>
Attaches the current default Subscriber to this type, returning a
WithDispatch wrapper. Read more