#[non_exhaustive]pub struct TranscriptEventBuilder { /* private fields */ }Expand description
A builder for TranscriptEvent.
Implementations§
source§impl TranscriptEventBuilder
impl TranscriptEventBuilder
sourcepub fn transcript(self, input: impl Into<String>) -> Self
pub fn transcript(self, input: impl Into<String>) -> Self
The transcript of the voice audio from the user.
sourcepub fn set_transcript(self, input: Option<String>) -> Self
pub fn set_transcript(self, input: Option<String>) -> Self
The transcript of the voice audio from the user.
sourcepub fn get_transcript(&self) -> &Option<String>
pub fn get_transcript(&self) -> &Option<String>
The transcript of the voice audio from the user.
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) -> TranscriptEvent
pub fn build(self) -> TranscriptEvent
Consumes the builder and constructs a TranscriptEvent.
Trait Implementations§
source§impl Clone for TranscriptEventBuilder
impl Clone for TranscriptEventBuilder
source§fn clone(&self) -> TranscriptEventBuilder
fn clone(&self) -> TranscriptEventBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moresource§impl Debug for TranscriptEventBuilder
impl Debug for TranscriptEventBuilder
source§impl Default for TranscriptEventBuilder
impl Default for TranscriptEventBuilder
source§fn default() -> TranscriptEventBuilder
fn default() -> TranscriptEventBuilder
source§impl PartialEq for TranscriptEventBuilder
impl PartialEq for TranscriptEventBuilder
source§fn eq(&self, other: &TranscriptEventBuilder) -> bool
fn eq(&self, other: &TranscriptEventBuilder) -> bool
self and other values to be equal, and is used
by ==.impl StructuralPartialEq for TranscriptEventBuilder
Auto Trait Implementations§
impl Freeze for TranscriptEventBuilder
impl RefUnwindSafe for TranscriptEventBuilder
impl Send for TranscriptEventBuilder
impl Sync for TranscriptEventBuilder
impl Unpin for TranscriptEventBuilder
impl UnwindSafe for TranscriptEventBuilder
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