#[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 ==.