#[non_exhaustive]pub struct PromptAttemptSpecificationBuilder { /* private fields */ }Expand description
A builder for PromptAttemptSpecification.
Implementations§
source§impl PromptAttemptSpecificationBuilder
impl PromptAttemptSpecificationBuilder
sourcepub fn allow_interrupt(self, input: bool) -> Self
pub fn allow_interrupt(self, input: bool) -> Self
Indicates whether the user can interrupt a speech prompt attempt from the bot.
sourcepub fn set_allow_interrupt(self, input: Option<bool>) -> Self
pub fn set_allow_interrupt(self, input: Option<bool>) -> Self
Indicates whether the user can interrupt a speech prompt attempt from the bot.
sourcepub fn get_allow_interrupt(&self) -> &Option<bool>
pub fn get_allow_interrupt(&self) -> &Option<bool>
Indicates whether the user can interrupt a speech prompt attempt from the bot.
sourcepub fn allowed_input_types(self, input: AllowedInputTypes) -> Self
pub fn allowed_input_types(self, input: AllowedInputTypes) -> Self
Indicates the allowed input types of the prompt attempt.
This field is required.sourcepub fn set_allowed_input_types(self, input: Option<AllowedInputTypes>) -> Self
pub fn set_allowed_input_types(self, input: Option<AllowedInputTypes>) -> Self
Indicates the allowed input types of the prompt attempt.
sourcepub fn get_allowed_input_types(&self) -> &Option<AllowedInputTypes>
pub fn get_allowed_input_types(&self) -> &Option<AllowedInputTypes>
Indicates the allowed input types of the prompt attempt.
sourcepub fn audio_and_dtmf_input_specification(
self,
input: AudioAndDtmfInputSpecification,
) -> Self
pub fn audio_and_dtmf_input_specification( self, input: AudioAndDtmfInputSpecification, ) -> Self
Specifies the settings on audio and DTMF input.
sourcepub fn set_audio_and_dtmf_input_specification(
self,
input: Option<AudioAndDtmfInputSpecification>,
) -> Self
pub fn set_audio_and_dtmf_input_specification( self, input: Option<AudioAndDtmfInputSpecification>, ) -> Self
Specifies the settings on audio and DTMF input.
sourcepub fn get_audio_and_dtmf_input_specification(
&self,
) -> &Option<AudioAndDtmfInputSpecification>
pub fn get_audio_and_dtmf_input_specification( &self, ) -> &Option<AudioAndDtmfInputSpecification>
Specifies the settings on audio and DTMF input.
sourcepub fn text_input_specification(self, input: TextInputSpecification) -> Self
pub fn text_input_specification(self, input: TextInputSpecification) -> Self
Specifies the settings on text input.
sourcepub fn set_text_input_specification(
self,
input: Option<TextInputSpecification>,
) -> Self
pub fn set_text_input_specification( self, input: Option<TextInputSpecification>, ) -> Self
Specifies the settings on text input.
sourcepub fn get_text_input_specification(&self) -> &Option<TextInputSpecification>
pub fn get_text_input_specification(&self) -> &Option<TextInputSpecification>
Specifies the settings on text input.
sourcepub fn build(self) -> PromptAttemptSpecification
pub fn build(self) -> PromptAttemptSpecification
Consumes the builder and constructs a PromptAttemptSpecification.
Trait Implementations§
source§impl Clone for PromptAttemptSpecificationBuilder
impl Clone for PromptAttemptSpecificationBuilder
source§fn clone(&self) -> PromptAttemptSpecificationBuilder
fn clone(&self) -> PromptAttemptSpecificationBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moresource§impl Default for PromptAttemptSpecificationBuilder
impl Default for PromptAttemptSpecificationBuilder
source§fn default() -> PromptAttemptSpecificationBuilder
fn default() -> PromptAttemptSpecificationBuilder
source§impl PartialEq for PromptAttemptSpecificationBuilder
impl PartialEq for PromptAttemptSpecificationBuilder
source§fn eq(&self, other: &PromptAttemptSpecificationBuilder) -> bool
fn eq(&self, other: &PromptAttemptSpecificationBuilder) -> bool
self and other values to be equal, and is used
by ==.impl StructuralPartialEq for PromptAttemptSpecificationBuilder
Auto Trait Implementations§
impl Freeze for PromptAttemptSpecificationBuilder
impl RefUnwindSafe for PromptAttemptSpecificationBuilder
impl Send for PromptAttemptSpecificationBuilder
impl Sync for PromptAttemptSpecificationBuilder
impl Unpin for PromptAttemptSpecificationBuilder
impl UnwindSafe for PromptAttemptSpecificationBuilder
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit)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