pub struct RunBotOptions {
pub token: Option<String>,
pub ticket: Option<String>,
pub match_id: Option<String>,
pub client_name: Option<String>,
pub client_version: Option<String>,
pub retry_policy: RetryPolicy,
pub safe_mode: bool,
pub user_agent: Option<String>,
}Expand description
Optional knobs for run_bot. Defaults match the platform’s
expectations.
Fields§
§token: Option<String>Bot API token. Required for the /bot endpoint; empty is fine
for local dev.
ticket: Option<String>Single-use ticket alternative to token (competitive
endpoints).
match_id: Option<String>Match UUID. Auto-extracted from the URL if None.
client_name: Option<String>Client software name sent in the hello handshake.
client_version: Option<String>Client software version sent in the hello handshake. Defaults to
the crate version (chipzen-ai/chipzen-sdk#41).
retry_policy: RetryPolicyReconnect-pacing policy (attempt cap + exponential backoff).
safe_mode: boolWhen true (default), a panic in decide() is caught and folded —
a transient bug won’t forfeit a competitive match. Set false for
dev/eval so the first panic propagates as Error::BotDecision and
exits non-zero (chipzen-ai/chipzen-sdk#52).
user_agent: Option<String>Override the WS User-Agent header. Defaults to
chipzen-sdk-rust/<version> (chipzen-ai/chipzen-sdk#46).
Trait Implementations§
Source§impl Clone for RunBotOptions
impl Clone for RunBotOptions
Source§fn clone(&self) -> RunBotOptions
fn clone(&self) -> RunBotOptions
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more