pub struct ConversationRelay {Show 15 fields
pub url: Option<String>,
pub welcome_greeting: Option<String>,
pub voice: Option<String>,
pub language: Option<String>,
pub dtmf_detection: Option<bool>,
pub interruptible: Option<bool>,
pub interruption_sensitivity: Option<String>,
pub speech_model: Option<String>,
pub profanity_filter: Option<bool>,
pub transcription_enabled: Option<bool>,
pub status_callback: Option<String>,
pub status_callback_method: Option<String>,
pub max_duration: Option<u32>,
pub languages: Vec<Language>,
pub parameters: Vec<Parameter>,
}Fields§
§url: Option<String>§welcome_greeting: Option<String>§voice: Option<String>§language: Option<String>§dtmf_detection: Option<bool>§interruptible: Option<bool>§interruption_sensitivity: Option<String>§speech_model: Option<String>§profanity_filter: Option<bool>§transcription_enabled: Option<bool>§status_callback: Option<String>§status_callback_method: Option<String>§max_duration: Option<u32>§languages: Vec<Language>§parameters: Vec<Parameter>Implementations§
Source§impl ConversationRelay
impl ConversationRelay
pub fn new(url: impl Into<String>) -> Self
pub fn url(self, url: impl Into<String>) -> Self
pub fn welcome_greeting(self, greeting: impl Into<String>) -> Self
pub fn voice(self, voice: impl Into<String>) -> Self
pub fn language(self, language: impl Into<String>) -> Self
pub fn dtmf_detection(self, enabled: bool) -> Self
pub fn interruptible(self, enabled: bool) -> Self
pub fn interruption_sensitivity(self, sensitivity: impl Into<String>) -> Self
pub fn speech_model(self, model: impl Into<String>) -> Self
pub fn profanity_filter(self, enabled: bool) -> Self
pub fn transcription_enabled(self, enabled: bool) -> Self
pub fn status_callback(self, url: impl Into<String>) -> Self
pub fn status_callback_method(self, method: impl Into<String>) -> Self
pub fn max_duration(self, seconds: u32) -> Self
pub fn add_language(self, language: Language) -> Self
pub fn add_parameter(self, parameter: Parameter) -> Self
Trait Implementations§
Source§impl Clone for ConversationRelay
impl Clone for ConversationRelay
Source§fn clone(&self) -> ConversationRelay
fn clone(&self) -> ConversationRelay
Returns a duplicate 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 ConversationRelay
impl Debug for ConversationRelay
Source§impl Default for ConversationRelay
impl Default for ConversationRelay
Source§fn default() -> ConversationRelay
fn default() -> ConversationRelay
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for ConversationRelay
impl RefUnwindSafe for ConversationRelay
impl Send for ConversationRelay
impl Sync for ConversationRelay
impl Unpin for ConversationRelay
impl UnwindSafe for ConversationRelay
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