Struct aws_sdk_lexmodelsv2::types::UtteranceBotResponse
source · #[non_exhaustive]pub struct UtteranceBotResponse {
pub content: Option<String>,
pub content_type: Option<UtteranceContentType>,
pub image_response_card: Option<ImageResponseCard>,
}Expand description
An object that contains a response to the utterance from the bot.
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.content: Option<String>The text of the response to the utterance from the bot.
content_type: Option<UtteranceContentType>The type of the response. The following values are possible:
-
PlainText– A plain text string. -
CustomPayload– A response string that you can customize to include data or metadata for your application. -
SSML– A string that includes Speech Synthesis Markup Language to customize the audio response. -
ImageResponseCard– An image with buttons that the customer can select. See ImageResponseCard for more information.
image_response_card: Option<ImageResponseCard>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.
Implementations§
source§impl UtteranceBotResponse
impl UtteranceBotResponse
sourcepub fn content_type(&self) -> Option<&UtteranceContentType>
pub fn content_type(&self) -> Option<&UtteranceContentType>
The type of the response. The following values are possible:
-
PlainText– A plain text string. -
CustomPayload– A response string that you can customize to include data or metadata for your application. -
SSML– A string that includes Speech Synthesis Markup Language to customize the audio response. -
ImageResponseCard– An image with buttons that the customer can select. See ImageResponseCard for more information.
sourcepub fn image_response_card(&self) -> Option<&ImageResponseCard>
pub fn image_response_card(&self) -> Option<&ImageResponseCard>
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.
source§impl UtteranceBotResponse
impl UtteranceBotResponse
sourcepub fn builder() -> UtteranceBotResponseBuilder
pub fn builder() -> UtteranceBotResponseBuilder
Creates a new builder-style object to manufacture UtteranceBotResponse.
Trait Implementations§
source§impl Clone for UtteranceBotResponse
impl Clone for UtteranceBotResponse
source§fn clone(&self) -> UtteranceBotResponse
fn clone(&self) -> UtteranceBotResponse
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moresource§impl Debug for UtteranceBotResponse
impl Debug for UtteranceBotResponse
source§impl PartialEq for UtteranceBotResponse
impl PartialEq for UtteranceBotResponse
impl StructuralPartialEq for UtteranceBotResponse
Auto Trait Implementations§
impl Freeze for UtteranceBotResponse
impl RefUnwindSafe for UtteranceBotResponse
impl Send for UtteranceBotResponse
impl Sync for UtteranceBotResponse
impl Unpin for UtteranceBotResponse
impl UnwindSafe for UtteranceBotResponse
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit)source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more