#[non_exhaustive]pub struct AllowedInputTypesBuilder { /* private fields */ }Expand description
A builder for AllowedInputTypes.
Implementations§
source§impl AllowedInputTypesBuilder
impl AllowedInputTypesBuilder
sourcepub fn allow_audio_input(self, input: bool) -> Self
pub fn allow_audio_input(self, input: bool) -> Self
Indicates whether audio input is allowed.
This field is required.sourcepub fn set_allow_audio_input(self, input: Option<bool>) -> Self
pub fn set_allow_audio_input(self, input: Option<bool>) -> Self
Indicates whether audio input is allowed.
sourcepub fn get_allow_audio_input(&self) -> &Option<bool>
pub fn get_allow_audio_input(&self) -> &Option<bool>
Indicates whether audio input is allowed.
sourcepub fn allow_dtmf_input(self, input: bool) -> Self
pub fn allow_dtmf_input(self, input: bool) -> Self
Indicates whether DTMF input is allowed.
This field is required.sourcepub fn set_allow_dtmf_input(self, input: Option<bool>) -> Self
pub fn set_allow_dtmf_input(self, input: Option<bool>) -> Self
Indicates whether DTMF input is allowed.
sourcepub fn get_allow_dtmf_input(&self) -> &Option<bool>
pub fn get_allow_dtmf_input(&self) -> &Option<bool>
Indicates whether DTMF input is allowed.
sourcepub fn build(self) -> Result<AllowedInputTypes, BuildError>
pub fn build(self) -> Result<AllowedInputTypes, BuildError>
Consumes the builder and constructs a AllowedInputTypes.
This method will fail if any of the following fields are not set:
Trait Implementations§
source§impl Clone for AllowedInputTypesBuilder
impl Clone for AllowedInputTypesBuilder
source§fn clone(&self) -> AllowedInputTypesBuilder
fn clone(&self) -> AllowedInputTypesBuilder
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moresource§impl Debug for AllowedInputTypesBuilder
impl Debug for AllowedInputTypesBuilder
source§impl Default for AllowedInputTypesBuilder
impl Default for AllowedInputTypesBuilder
source§fn default() -> AllowedInputTypesBuilder
fn default() -> AllowedInputTypesBuilder
Returns the “default value” for a type. Read more
source§impl PartialEq for AllowedInputTypesBuilder
impl PartialEq for AllowedInputTypesBuilder
source§fn eq(&self, other: &AllowedInputTypesBuilder) -> bool
fn eq(&self, other: &AllowedInputTypesBuilder) -> bool
This method tests for
self and other values to be equal, and is used
by ==.impl StructuralPartialEq for AllowedInputTypesBuilder
Auto Trait Implementations§
impl RefUnwindSafe for AllowedInputTypesBuilder
impl Send for AllowedInputTypesBuilder
impl Sync for AllowedInputTypesBuilder
impl Unpin for AllowedInputTypesBuilder
impl UnwindSafe for AllowedInputTypesBuilder
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
Mutably borrows from an owned value. Read more
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>
Creates a shared type from an unshared type.