pub struct VapiConfig {
pub api_key: VapiApiKey,
pub api_base: Url,
pub http_timeout: Duration,
pub websocket_timeout: Duration,
pub websocket_io_timeout: Duration,
pub graceful_shutdown_timeout: Duration,
pub heartbeat_interval: Duration,
pub media_queue_capacity: usize,
pub control_queue_capacity: usize,
pub event_queue_capacity: usize,
pub max_message_bytes: usize,
pub startup_audio_frames: usize,
/* private fields */
}Expand description
Static configuration shared by all calls placed through an adapter.
Fields§
§api_key: VapiApiKey§api_base: Url§http_timeout: Duration§websocket_timeout: Duration§websocket_io_timeout: Duration§graceful_shutdown_timeout: Duration§heartbeat_interval: Duration§media_queue_capacity: usize§control_queue_capacity: usize§event_queue_capacity: usize§max_message_bytes: usize§startup_audio_frames: usizeImplementations§
Source§impl VapiConfig
impl VapiConfig
pub fn new(api_key: VapiApiKey) -> Self
pub fn with_api_base(self, api_base: Url) -> Self
Sourcepub fn with_loopback_test_transport(self) -> Self
pub fn with_loopback_test_transport(self) -> Self
Permit HTTP and WS endpoints for a loopback-only test server.
Production callers should never enable this. Validation rejects an
insecure host that is not an IP loopback or localhost.
pub fn validate(&self) -> Result<()>
Trait Implementations§
Source§impl Clone for VapiConfig
impl Clone for VapiConfig
Source§fn clone(&self) -> VapiConfig
fn clone(&self) -> VapiConfig
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 VapiConfig
impl RefUnwindSafe for VapiConfig
impl Send for VapiConfig
impl Sync for VapiConfig
impl Unpin for VapiConfig
impl UnsafeUnpin for VapiConfig
impl UnwindSafe for VapiConfig
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