Struct aws_sdk_lexruntimev2::types::TextResponseEvent
source · #[non_exhaustive]pub struct TextResponseEvent {
pub messages: Option<Vec<Message>>,
pub event_id: Option<String>,
}Expand description
The event sent from Amazon Lex V2 to your application with text to present to the user.
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.messages: Option<Vec<Message>>A list of messages to send to the user. Messages are ordered based on the order that you returned the messages from your Lambda function or the order that the messages are defined in the bot.
event_id: Option<String>A unique identifier of the event sent by Amazon Lex V2. The identifier is in the form RESPONSE-N, where N is a number starting with one and incremented for each event sent by Amazon Lex V2 in the current session.
Implementations§
source§impl TextResponseEvent
impl TextResponseEvent
sourcepub fn messages(&self) -> &[Message]
pub fn messages(&self) -> &[Message]
A list of messages to send to the user. Messages are ordered based on the order that you returned the messages from your Lambda function or the order that the messages are defined in the bot.
If no value was sent for this field, a default will be set. If you want to determine if no value was sent, use .messages.is_none().
source§impl TextResponseEvent
impl TextResponseEvent
sourcepub fn builder() -> TextResponseEventBuilder
pub fn builder() -> TextResponseEventBuilder
Creates a new builder-style object to manufacture TextResponseEvent.
Trait Implementations§
source§impl Clone for TextResponseEvent
impl Clone for TextResponseEvent
source§fn clone(&self) -> TextResponseEvent
fn clone(&self) -> TextResponseEvent
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moresource§impl Debug for TextResponseEvent
impl Debug for TextResponseEvent
source§impl PartialEq for TextResponseEvent
impl PartialEq for TextResponseEvent
source§fn eq(&self, other: &TextResponseEvent) -> bool
fn eq(&self, other: &TextResponseEvent) -> bool
self and other values to be equal, and is used
by ==.impl StructuralPartialEq for TextResponseEvent
Auto Trait Implementations§
impl Freeze for TextResponseEvent
impl RefUnwindSafe for TextResponseEvent
impl Send for TextResponseEvent
impl Sync for TextResponseEvent
impl Unpin for TextResponseEvent
impl UnwindSafe for TextResponseEvent
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> 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