pub struct ChatConfig {
pub max_messages: usize,
pub enable_history: bool,
pub auto_scroll: bool,
pub show_typing: bool,
}
Expand description
Chat configuration
Fields§
§max_messages: usize
Maximum number of messages to keep in memory
enable_history: bool
Enable message history
auto_scroll: bool
Auto-scroll to new messages
show_typing: bool
Show typing indicators
Trait Implementations§
Source§impl Clone for ChatConfig
impl Clone for ChatConfig
Source§fn clone(&self) -> ChatConfig
fn clone(&self) -> ChatConfig
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 ChatConfig
impl Debug for ChatConfig
Source§impl Default for ChatConfig
impl Default for ChatConfig
Source§impl<'de> Deserialize<'de> for ChatConfig
impl<'de> Deserialize<'de> for ChatConfig
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 ChatConfig
impl RefUnwindSafe for ChatConfig
impl Send for ChatConfig
impl Sync for ChatConfig
impl Unpin for ChatConfig
impl UnwindSafe for ChatConfig
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more