pub struct TuningConfig {
pub slack_max_message_chars: usize,
pub session_ttl_days: i64,
pub live_update_interval_secs: u64,
pub rate_limit_interval_ms: u64,
pub max_accumulated_text_bytes: usize,
pub first_chunk_max_retries: u32,
pub log_preview_max_len: usize,
}Expand description
Performance and behavior tuning parameters. All fields have sensible defaults and are optional.
Fields§
§slack_max_message_chars: usizeSlack’s approximate max message length (characters) for chat.postMessage. Default: 39000
session_ttl_days: i64Session time-to-live in days. Sessions older than this are pruned. Default: 7
live_update_interval_secs: u64Live-mode message update interval in seconds. Default: 2
rate_limit_interval_ms: u64Minimum interval between Slack API write calls per channel (ms). Default: 1100
max_accumulated_text_bytes: usizeMaximum accumulated text size in bytes before flushing (prevents unbounded growth). Default: 1000000
first_chunk_max_retries: u32Max retries for posting the first chunk of a thread. Default: 3
log_preview_max_len: usizeMax length of message text shown in log previews. Default: 100
Trait Implementations§
Source§impl Clone for TuningConfig
impl Clone for TuningConfig
Source§fn clone(&self) -> TuningConfig
fn clone(&self) -> TuningConfig
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 TuningConfig
impl Debug for TuningConfig
Source§impl Default for TuningConfig
impl Default for TuningConfig
Source§impl<'de> Deserialize<'de> for TuningConfigwhere
TuningConfig: Default,
impl<'de> Deserialize<'de> for TuningConfigwhere
TuningConfig: Default,
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 TuningConfig
impl RefUnwindSafe for TuningConfig
impl Send for TuningConfig
impl Sync for TuningConfig
impl Unpin for TuningConfig
impl UnsafeUnpin for TuningConfig
impl UnwindSafe for TuningConfig
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