pub struct Config {
pub token: String,
pub mode: NetworkMode,
pub client: Option<Client>,
pub fetch: Option<FetchFn>,
pub web_socket_factory: Option<WebSocketFactory>,
pub ping_interval: f64,
pub pong_timeout: f64,
pub reconnect_backoff_max: f64,
pub max_reconnect_attempts: u32,
pub ignore_self_messages: bool,
}Expand description
Configuration for WebexMessageHandler.
Fields§
§token: StringWebex bot or user access token (required).
mode: NetworkModeNetworking mode: Native or Injected (default: Native).
client: Option<Client>Optional HTTP client for proxy support (native mode only). If None, a default client will be created.
fetch: Option<FetchFn>Custom fetch function for all HTTP requests (injected mode).
web_socket_factory: Option<WebSocketFactory>Custom WebSocket factory (injected mode).
ping_interval: f64Mercury ping interval in seconds (default: 15).
pong_timeout: f64Pong response timeout in seconds (default: 14).
reconnect_backoff_max: f64Max reconnect backoff in seconds (default: 32).
max_reconnect_attempts: u32Max consecutive reconnection attempts (default: 10).
ignore_self_messages: boolAutomatically filter out messages sent by this bot to prevent loops (default: true).
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