pub struct Builder { /* private fields */ }Expand description
A builder for PromptAttemptSpecification.
Implementations
sourceimpl Builder
impl Builder
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
impl StructuralPartialEq for Builder
Auto Trait Implementations
impl RefUnwindSafe for Builder
impl Send for Builder
impl Sync for Builder
impl Unpin for Builder
impl UnwindSafe for Builder
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more