pub struct StreamConfig {
pub enabled: bool,
pub strategy: StreamStrategy,
pub edit_interval_ms: u64,
pub chunk_min_chars: usize,
pub max_message_len: usize,
pub show_typing: bool,
pub streaming_cursor: String,
}Expand description
Configuration for messenger streaming.
Fields§
§enabled: boolWhether streaming is enabled for this messenger.
strategy: StreamStrategyStreaming strategy.
edit_interval_ms: u64Minimum interval between message edits (milliseconds). Prevents rate-limiting from too-frequent edits.
chunk_min_chars: usizeFor chunked strategy: minimum characters before sending a chunk.
max_message_len: usizeMaximum message length before splitting into multiple messages.
show_typing: boolWhether to show a typing indicator while generating.
streaming_cursor: StringSuffix to append while streaming is in progress (e.g., “ ▌“).
Trait Implementations§
Source§impl Clone for StreamConfig
impl Clone for StreamConfig
Source§fn clone(&self) -> StreamConfig
fn clone(&self) -> StreamConfig
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 StreamConfig
impl Debug for StreamConfig
Source§impl Default for StreamConfig
impl Default for StreamConfig
Source§impl<'de> Deserialize<'de> for StreamConfig
impl<'de> Deserialize<'de> for StreamConfig
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 StreamConfig
impl RefUnwindSafe for StreamConfig
impl Send for StreamConfig
impl Sync for StreamConfig
impl Unpin for StreamConfig
impl UnsafeUnpin for StreamConfig
impl UnwindSafe for StreamConfig
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