#[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 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.
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 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 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 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
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 Default for PromptAttemptSpecificationBuilder
impl Default for PromptAttemptSpecificationBuilder
source§fn default() -> PromptAttemptSpecificationBuilder
fn default() -> PromptAttemptSpecificationBuilder
Returns the “default value” for a type. Read more
source§impl PartialEq<PromptAttemptSpecificationBuilder> for PromptAttemptSpecificationBuilder
impl PartialEq<PromptAttemptSpecificationBuilder> for PromptAttemptSpecificationBuilder
source§fn eq(&self, other: &PromptAttemptSpecificationBuilder) -> bool
fn eq(&self, other: &PromptAttemptSpecificationBuilder) -> bool
This method tests for
self and other values to be equal, and is used
by ==.impl StructuralPartialEq for PromptAttemptSpecificationBuilder
Auto Trait Implementations§
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
Mutably borrows from an owned value. Read more