#[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.
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 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.
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 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.
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 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.
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 build(self) -> DtmfSpecification
pub fn build(self) -> DtmfSpecification
Consumes the builder and constructs a DtmfSpecification.
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<DtmfSpecificationBuilder> for DtmfSpecificationBuilder
impl PartialEq<DtmfSpecificationBuilder> 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 ==.