pub struct OpenAiVoicemailDetectionPlan {
pub beep_max_await_seconds: Option<f64>,
pub provider: ProviderTrue,
pub backoff_plan: Option<VoicemailDetectionBackoffPlan>,
}
Fields§
§beep_max_await_seconds: Option<f64>
This is the maximum duration from the start of the call that we will wait for a voicemail beep, before speaking our message - If we detect a voicemail beep before this, we will speak the message at that point. - Setting too low a value means that the bot will start speaking its voicemail message too early. If it does so before the actual beep, it will get cut off. You should definitely tune this to your use case. @default 30 @min 0 @max 60
provider: ProviderTrue
This is the provider to use for voicemail detection.
backoff_plan: Option<VoicemailDetectionBackoffPlan>
This is the backoff plan for the voicemail detection.
Implementations§
Source§impl OpenAiVoicemailDetectionPlan
impl OpenAiVoicemailDetectionPlan
pub fn new(provider: ProviderTrue) -> OpenAiVoicemailDetectionPlan
Trait Implementations§
Source§impl Clone for OpenAiVoicemailDetectionPlan
impl Clone for OpenAiVoicemailDetectionPlan
Source§fn clone(&self) -> OpenAiVoicemailDetectionPlan
fn clone(&self) -> OpenAiVoicemailDetectionPlan
Returns a duplicate of the value. Read more
1.0.0 · Source§const fn clone_from(&mut self, source: &Self)
const fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for OpenAiVoicemailDetectionPlan
impl Debug for OpenAiVoicemailDetectionPlan
Source§impl Default for OpenAiVoicemailDetectionPlan
impl Default for OpenAiVoicemailDetectionPlan
Source§fn default() -> OpenAiVoicemailDetectionPlan
fn default() -> OpenAiVoicemailDetectionPlan
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for OpenAiVoicemailDetectionPlan
impl<'de> Deserialize<'de> for OpenAiVoicemailDetectionPlan
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for OpenAiVoicemailDetectionPlan
impl PartialEq for OpenAiVoicemailDetectionPlan
Source§fn eq(&self, other: &OpenAiVoicemailDetectionPlan) -> bool
fn eq(&self, other: &OpenAiVoicemailDetectionPlan) -> bool
Tests for
self
and other
values to be equal, and is used by ==
.impl StructuralPartialEq for OpenAiVoicemailDetectionPlan
Auto Trait Implementations§
impl Freeze for OpenAiVoicemailDetectionPlan
impl RefUnwindSafe for OpenAiVoicemailDetectionPlan
impl Send for OpenAiVoicemailDetectionPlan
impl Sync for OpenAiVoicemailDetectionPlan
impl Unpin for OpenAiVoicemailDetectionPlan
impl UnwindSafe for OpenAiVoicemailDetectionPlan
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