pub struct PunchConfig {
pub api_listen: String,
pub api_key: String,
pub rate_limit_rpm: u32,
pub default_model: ModelConfig,
pub memory: MemoryConfig,
pub tunnel: Option<TunnelConfig>,
pub channels: HashMap<String, ChannelConfig>,
pub mcp_servers: HashMap<String, McpServerConfig>,
}Expand description
Top-level Punch configuration.
Fields§
§api_listen: StringSocket address for the Arena API server (e.g. “127.0.0.1:6660”). Use 127.0.0.1 for local-only access. Only bind to 0.0.0.0 if you need external access AND have authentication configured.
api_key: StringAPI key for authentication. If empty, auth is disabled (dev mode).
rate_limit_rpm: u32Per-IP rate limit in requests per minute. Default: 60.
default_model: ModelConfigDefault model to use when none is specified.
memory: MemoryConfigMemory subsystem configuration.
tunnel: Option<TunnelConfig>Tunnel / public URL configuration shared by all channel webhooks.
channels: HashMap<String, ChannelConfig>Channel configurations keyed by channel name (e.g. “slack”, “discord”).
mcp_servers: HashMap<String, McpServerConfig>MCP server definitions keyed by server name.
Trait Implementations§
Source§impl Clone for PunchConfig
impl Clone for PunchConfig
Source§fn clone(&self) -> PunchConfig
fn clone(&self) -> PunchConfig
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for PunchConfig
impl Debug for PunchConfig
Source§impl<'de> Deserialize<'de> for PunchConfig
impl<'de> Deserialize<'de> for PunchConfig
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for PunchConfig
impl RefUnwindSafe for PunchConfig
impl Send for PunchConfig
impl Sync for PunchConfig
impl Unpin for PunchConfig
impl UnsafeUnpin for PunchConfig
impl UnwindSafe for PunchConfig
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