#[non_exhaustive]pub struct AudioAndDtmfInputSpecificationBuilder { /* private fields */ }Expand description
A builder for AudioAndDtmfInputSpecification.
Implementations§
source§impl AudioAndDtmfInputSpecificationBuilder
impl AudioAndDtmfInputSpecificationBuilder
sourcepub fn start_timeout_ms(self, input: i32) -> Self
pub fn start_timeout_ms(self, input: i32) -> Self
Time for which a bot waits before assuming that the customer isn't going to speak or press a key. This timeout is shared between Audio and DTMF inputs.
This field is required.sourcepub fn set_start_timeout_ms(self, input: Option<i32>) -> Self
pub fn set_start_timeout_ms(self, input: Option<i32>) -> Self
Time for which a bot waits before assuming that the customer isn't going to speak or press a key. This timeout is shared between Audio and DTMF inputs.
sourcepub fn get_start_timeout_ms(&self) -> &Option<i32>
pub fn get_start_timeout_ms(&self) -> &Option<i32>
Time for which a bot waits before assuming that the customer isn't going to speak or press a key. This timeout is shared between Audio and DTMF inputs.
sourcepub fn audio_specification(self, input: AudioSpecification) -> Self
pub fn audio_specification(self, input: AudioSpecification) -> Self
Specifies the settings on audio input.
sourcepub fn set_audio_specification(self, input: Option<AudioSpecification>) -> Self
pub fn set_audio_specification(self, input: Option<AudioSpecification>) -> Self
Specifies the settings on audio input.
sourcepub fn get_audio_specification(&self) -> &Option<AudioSpecification>
pub fn get_audio_specification(&self) -> &Option<AudioSpecification>
Specifies the settings on audio input.
sourcepub fn dtmf_specification(self, input: DtmfSpecification) -> Self
pub fn dtmf_specification(self, input: DtmfSpecification) -> Self
Specifies the settings on DTMF input.
sourcepub fn set_dtmf_specification(self, input: Option<DtmfSpecification>) -> Self
pub fn set_dtmf_specification(self, input: Option<DtmfSpecification>) -> Self
Specifies the settings on DTMF input.
sourcepub fn get_dtmf_specification(&self) -> &Option<DtmfSpecification>
pub fn get_dtmf_specification(&self) -> &Option<DtmfSpecification>
Specifies the settings on DTMF input.
sourcepub fn build(self) -> Result<AudioAndDtmfInputSpecification, BuildError>
pub fn build(self) -> Result<AudioAndDtmfInputSpecification, BuildError>
Consumes the builder and constructs a AudioAndDtmfInputSpecification.
This method will fail if any of the following fields are not set:
Trait Implementations§
source§impl Clone for AudioAndDtmfInputSpecificationBuilder
impl Clone for AudioAndDtmfInputSpecificationBuilder
source§fn clone(&self) -> AudioAndDtmfInputSpecificationBuilder
fn clone(&self) -> AudioAndDtmfInputSpecificationBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moresource§impl Default for AudioAndDtmfInputSpecificationBuilder
impl Default for AudioAndDtmfInputSpecificationBuilder
source§fn default() -> AudioAndDtmfInputSpecificationBuilder
fn default() -> AudioAndDtmfInputSpecificationBuilder
source§impl PartialEq for AudioAndDtmfInputSpecificationBuilder
impl PartialEq for AudioAndDtmfInputSpecificationBuilder
source§fn eq(&self, other: &AudioAndDtmfInputSpecificationBuilder) -> bool
fn eq(&self, other: &AudioAndDtmfInputSpecificationBuilder) -> bool
self and other values to be equal, and is used
by ==.impl StructuralPartialEq for AudioAndDtmfInputSpecificationBuilder
Auto Trait Implementations§
impl Freeze for AudioAndDtmfInputSpecificationBuilder
impl RefUnwindSafe for AudioAndDtmfInputSpecificationBuilder
impl Send for AudioAndDtmfInputSpecificationBuilder
impl Sync for AudioAndDtmfInputSpecificationBuilder
impl Unpin for AudioAndDtmfInputSpecificationBuilder
impl UnwindSafe for AudioAndDtmfInputSpecificationBuilder
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit)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