#[non_exhaustive]pub struct DtmfSpecificationBuilder { /* private fields */ }Expand description
A builder for DtmfSpecification.
Implementations§
source§impl DtmfSpecificationBuilder
impl DtmfSpecificationBuilder
sourcepub fn max_length(self, input: i32) -> Self
pub fn max_length(self, input: i32) -> Self
The maximum number of DTMF digits allowed in an utterance.
This field is required.sourcepub fn set_max_length(self, input: Option<i32>) -> Self
pub fn set_max_length(self, input: Option<i32>) -> Self
The maximum number of DTMF digits allowed in an utterance.
sourcepub fn get_max_length(&self) -> &Option<i32>
pub fn get_max_length(&self) -> &Option<i32>
The maximum number of DTMF digits allowed in an utterance.
sourcepub fn end_timeout_ms(self, input: i32) -> Self
pub fn end_timeout_ms(self, input: i32) -> Self
How long the bot should wait after the last DTMF character input before assuming that the input has concluded.
This field is required.sourcepub fn set_end_timeout_ms(self, input: Option<i32>) -> Self
pub fn set_end_timeout_ms(self, input: Option<i32>) -> Self
How long the bot should wait after the last DTMF character input before assuming that the input has concluded.
sourcepub fn get_end_timeout_ms(&self) -> &Option<i32>
pub fn get_end_timeout_ms(&self) -> &Option<i32>
How long the bot should wait after the last DTMF character input before assuming that the input has concluded.
sourcepub fn deletion_character(self, input: impl Into<String>) -> Self
pub fn deletion_character(self, input: impl Into<String>) -> Self
The DTMF character that clears the accumulated DTMF digits and immediately ends the input.
This field is required.sourcepub fn set_deletion_character(self, input: Option<String>) -> Self
pub fn set_deletion_character(self, input: Option<String>) -> Self
The DTMF character that clears the accumulated DTMF digits and immediately ends the input.
sourcepub fn get_deletion_character(&self) -> &Option<String>
pub fn get_deletion_character(&self) -> &Option<String>
The DTMF character that clears the accumulated DTMF digits and immediately ends the input.
sourcepub fn end_character(self, input: impl Into<String>) -> Self
pub fn end_character(self, input: impl Into<String>) -> Self
The DTMF character that immediately ends input. If the user does not press this character, the input ends after the end timeout.
This field is required.sourcepub fn set_end_character(self, input: Option<String>) -> Self
pub fn set_end_character(self, input: Option<String>) -> Self
The DTMF character that immediately ends input. If the user does not press this character, the input ends after the end timeout.
sourcepub fn get_end_character(&self) -> &Option<String>
pub fn get_end_character(&self) -> &Option<String>
The DTMF character that immediately ends input. If the user does not press this character, the input ends after the end timeout.
sourcepub fn build(self) -> Result<DtmfSpecification, BuildError>
pub fn build(self) -> Result<DtmfSpecification, BuildError>
Consumes the builder and constructs a DtmfSpecification.
This method will fail if any of the following fields are not set:
Trait Implementations§
source§impl Clone for DtmfSpecificationBuilder
impl Clone for DtmfSpecificationBuilder
source§fn clone(&self) -> DtmfSpecificationBuilder
fn clone(&self) -> DtmfSpecificationBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moresource§impl Debug for DtmfSpecificationBuilder
impl Debug for DtmfSpecificationBuilder
source§impl Default for DtmfSpecificationBuilder
impl Default for DtmfSpecificationBuilder
source§fn default() -> DtmfSpecificationBuilder
fn default() -> DtmfSpecificationBuilder
source§impl PartialEq for DtmfSpecificationBuilder
impl PartialEq for DtmfSpecificationBuilder
source§fn eq(&self, other: &DtmfSpecificationBuilder) -> bool
fn eq(&self, other: &DtmfSpecificationBuilder) -> bool
self and other values to be equal, and is used
by ==.impl StructuralPartialEq for DtmfSpecificationBuilder
Auto Trait Implementations§
impl Freeze for DtmfSpecificationBuilder
impl RefUnwindSafe for DtmfSpecificationBuilder
impl Send for DtmfSpecificationBuilder
impl Sync for DtmfSpecificationBuilder
impl Unpin for DtmfSpecificationBuilder
impl UnwindSafe for DtmfSpecificationBuilder
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