Struct aws_sdk_lexruntimev2::types::TextInputEvent
source · #[non_exhaustive]pub struct TextInputEvent {
pub text: String,
pub event_id: Option<String>,
pub client_timestamp_millis: i64,
}Expand description
The event sent from your client application to Amazon Lex V2 with text input from the user.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.text: StringThe text from the user. Amazon Lex V2 processes this as a complete statement.
event_id: Option<String>A unique identifier that your application assigns to the event. You can use this to identify events in logs.
client_timestamp_millis: i64A timestamp set by the client of the date and time that the event was sent to Amazon Lex V2.
Implementations§
source§impl TextInputEvent
impl TextInputEvent
sourcepub fn text(&self) -> &str
pub fn text(&self) -> &str
The text from the user. Amazon Lex V2 processes this as a complete statement.
sourcepub fn event_id(&self) -> Option<&str>
pub fn event_id(&self) -> Option<&str>
A unique identifier that your application assigns to the event. You can use this to identify events in logs.
sourcepub fn client_timestamp_millis(&self) -> i64
pub fn client_timestamp_millis(&self) -> i64
A timestamp set by the client of the date and time that the event was sent to Amazon Lex V2.
source§impl TextInputEvent
impl TextInputEvent
sourcepub fn builder() -> TextInputEventBuilder
pub fn builder() -> TextInputEventBuilder
Creates a new builder-style object to manufacture TextInputEvent.
Trait Implementations§
source§impl Clone for TextInputEvent
impl Clone for TextInputEvent
source§fn clone(&self) -> TextInputEvent
fn clone(&self) -> TextInputEvent
Returns a copy 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 TextInputEvent
impl Debug for TextInputEvent
source§impl PartialEq for TextInputEvent
impl PartialEq for TextInputEvent
source§fn eq(&self, other: &TextInputEvent) -> bool
fn eq(&self, other: &TextInputEvent) -> bool
This method tests for
self and other values to be equal, and is used
by ==.impl StructuralPartialEq for TextInputEvent
Auto Trait Implementations§
impl Freeze for TextInputEvent
impl RefUnwindSafe for TextInputEvent
impl Send for TextInputEvent
impl Sync for TextInputEvent
impl Unpin for TextInputEvent
impl UnwindSafe for TextInputEvent
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
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>
Converts
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>
Converts
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 moreCreates a shared type from an unshared type.