#[non_exhaustive]pub struct PlaybackInterruptionEvent {
pub event_reason: Option<PlaybackInterruptionReason>,
pub caused_by_event_id: Option<String>,
pub event_id: Option<String>,
}Expand description
Event sent from Amazon Lex V2 to indicate to the client application should stop playback of audio. For example, if the client is playing a prompt that asks for the user's telephone number, the user might start to say the phone number before the prompt is complete. Amazon Lex V2 sends this event to the client application to indicate that the user is responding and that Amazon Lex V2 is processing their input.
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.event_reason: Option<PlaybackInterruptionReason>Indicates the type of user input that Amazon Lex V2 detected.
caused_by_event_id: Option<String>The identifier of the event that contained the audio, DTMF, or text that caused the interruption.
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 PlaybackInterruptionEvent
impl PlaybackInterruptionEvent
sourcepub fn event_reason(&self) -> Option<&PlaybackInterruptionReason>
pub fn event_reason(&self) -> Option<&PlaybackInterruptionReason>
Indicates the type of user input that Amazon Lex V2 detected.
sourcepub fn caused_by_event_id(&self) -> Option<&str>
pub fn caused_by_event_id(&self) -> Option<&str>
The identifier of the event that contained the audio, DTMF, or text that caused the interruption.
source§impl PlaybackInterruptionEvent
impl PlaybackInterruptionEvent
sourcepub fn builder() -> PlaybackInterruptionEventBuilder
pub fn builder() -> PlaybackInterruptionEventBuilder
Creates a new builder-style object to manufacture PlaybackInterruptionEvent.
Trait Implementations§
source§impl Clone for PlaybackInterruptionEvent
impl Clone for PlaybackInterruptionEvent
source§fn clone(&self) -> PlaybackInterruptionEvent
fn clone(&self) -> PlaybackInterruptionEvent
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moresource§impl Debug for PlaybackInterruptionEvent
impl Debug for PlaybackInterruptionEvent
source§impl PartialEq for PlaybackInterruptionEvent
impl PartialEq for PlaybackInterruptionEvent
source§fn eq(&self, other: &PlaybackInterruptionEvent) -> bool
fn eq(&self, other: &PlaybackInterruptionEvent) -> bool
self and other values to be equal, and is used
by ==.impl StructuralPartialEq for PlaybackInterruptionEvent
Auto Trait Implementations§
impl Freeze for PlaybackInterruptionEvent
impl RefUnwindSafe for PlaybackInterruptionEvent
impl Send for PlaybackInterruptionEvent
impl Sync for PlaybackInterruptionEvent
impl Unpin for PlaybackInterruptionEvent
impl UnwindSafe for PlaybackInterruptionEvent
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