pub struct ConnectionConfig {
pub url: String,
pub token: Option<String>,
pub retry_policy: RetryPolicy,
pub env: Option<EnvName>,
pub config: Option<ChipzenConfig>,
}Expand description
Fully-resolved connection parameters ready for crate::run_external_bot.
Fields§
§url: StringWebSocket URL the bot should connect to. Either env-derived or the
verbatim [external_api].url from a discovered chipzen.toml.
token: Option<String>Long-lived API token from a discovered chipzen.toml, or None.
None doesn’t mean “auth-less”; just that the helper didn’t find
one — the caller may pass an explicit token separately.
retry_policy: RetryPolicyReconnect-pacing policy.
env: Option<EnvName>The resolved environment name, or None if the URL came verbatim
from a config file (no env mapping applied). Mostly for logs/debug.
config: Option<ChipzenConfig>The ChipzenConfig discovered during resolution (if any). Exposed
so callers can pass it through and avoid a second filesystem stat.
Trait Implementations§
Source§impl Clone for ConnectionConfig
impl Clone for ConnectionConfig
Source§fn clone(&self) -> ConnectionConfig
fn clone(&self) -> ConnectionConfig
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 ConnectionConfig
impl RefUnwindSafe for ConnectionConfig
impl Send for ConnectionConfig
impl Sync for ConnectionConfig
impl Unpin for ConnectionConfig
impl UnsafeUnpin for ConnectionConfig
impl UnwindSafe for ConnectionConfig
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