pub struct Config {
pub endpoint: String,
pub api_key: String,
pub user_id: Option<String>,
pub connection_timeout: Duration,
pub auto_reconnect: bool,
pub max_reconnect_attempts: u32,
pub reconnect_delay: Duration,
pub debug: bool,
}Expand description
Configuration for the LiveSpeech client
Fields§
§endpoint: StringWebSocket endpoint URL
api_key: StringAPI key for authentication
user_id: Option<String>User identifier for conversation memory persistence.
connection_timeout: DurationConnection timeout
auto_reconnect: boolEnable automatic reconnection
max_reconnect_attempts: u32Maximum reconnection attempts
reconnect_delay: DurationBase delay between reconnection attempts
debug: boolEnable debug logging
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Config
impl RefUnwindSafe for Config
impl Send for Config
impl Sync for Config
impl Unpin for Config
impl UnwindSafe for Config
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