pub struct VapiCallOptions {
pub assistant: VapiAssistant,
pub audio_format: VapiAudioFormat,
pub name: Option<String>,
pub metadata: Option<Value>,
pub peer_failure_policy: VapiPeerFailurePolicy,
}Expand description
Per-call options carried opaquely through OriginateRequest.
Fields§
§assistant: VapiAssistant§audio_format: VapiAudioFormat§name: Option<String>§metadata: Option<Value>§peer_failure_policy: VapiPeerFailurePolicyImplementations§
Source§impl VapiCallOptions
impl VapiCallOptions
pub fn new(assistant: VapiAssistant) -> Self
pub fn with_audio_format(self, audio_format: VapiAudioFormat) -> Self
pub fn with_name(self, name: impl Into<String>) -> Self
pub fn with_metadata(self, metadata: Value) -> Self
pub fn with_peer_failure_policy(self, policy: VapiPeerFailurePolicy) -> Self
pub fn validate(&self) -> Result<()>
Trait Implementations§
Source§impl Clone for VapiCallOptions
impl Clone for VapiCallOptions
Source§fn clone(&self) -> VapiCallOptions
fn clone(&self) -> VapiCallOptions
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for VapiCallOptions
impl RefUnwindSafe for VapiCallOptions
impl Send for VapiCallOptions
impl Sync for VapiCallOptions
impl Unpin for VapiCallOptions
impl UnsafeUnpin for VapiCallOptions
impl UnwindSafe for VapiCallOptions
Blanket Implementations§
Source§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
Source§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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