#[non_exhaustive]pub struct TextResponseEventBuilder { /* private fields */ }Expand description
A builder for TextResponseEvent.
Implementations§
source§impl TextResponseEventBuilder
impl TextResponseEventBuilder
sourcepub fn messages(self, input: Message) -> Self
pub fn messages(self, input: Message) -> Self
Appends an item to messages.
To override the contents of this collection use set_messages.
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.
sourcepub fn set_messages(self, input: Option<Vec<Message>>) -> Self
pub fn set_messages(self, input: Option<Vec<Message>>) -> Self
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.
sourcepub fn get_messages(&self) -> &Option<Vec<Message>>
pub fn get_messages(&self) -> &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.
sourcepub fn event_id(self, input: impl Into<String>) -> Self
pub fn event_id(self, input: impl Into<String>) -> Self
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.
sourcepub fn set_event_id(self, input: Option<String>) -> Self
pub fn set_event_id(self, input: Option<String>) -> Self
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.
sourcepub fn get_event_id(&self) -> &Option<String>
pub fn get_event_id(&self) -> &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.
sourcepub fn build(self) -> TextResponseEvent
pub fn build(self) -> TextResponseEvent
Consumes the builder and constructs a TextResponseEvent.
Trait Implementations§
source§impl Clone for TextResponseEventBuilder
impl Clone for TextResponseEventBuilder
source§fn clone(&self) -> TextResponseEventBuilder
fn clone(&self) -> TextResponseEventBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moresource§impl Debug for TextResponseEventBuilder
impl Debug for TextResponseEventBuilder
source§impl Default for TextResponseEventBuilder
impl Default for TextResponseEventBuilder
source§fn default() -> TextResponseEventBuilder
fn default() -> TextResponseEventBuilder
source§impl PartialEq for TextResponseEventBuilder
impl PartialEq for TextResponseEventBuilder
source§fn eq(&self, other: &TextResponseEventBuilder) -> bool
fn eq(&self, other: &TextResponseEventBuilder) -> bool
self and other values to be equal, and is used
by ==.impl StructuralPartialEq for TextResponseEventBuilder
Auto Trait Implementations§
impl Freeze for TextResponseEventBuilder
impl RefUnwindSafe for TextResponseEventBuilder
impl Send for TextResponseEventBuilder
impl Sync for TextResponseEventBuilder
impl Unpin for TextResponseEventBuilder
impl UnwindSafe for TextResponseEventBuilder
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