pub struct ChatHistory {
pub messages: Vec<ChatMessage>,
}Expand description
Ordered history of messages for a named chat session
Fields§
§messages: Vec<ChatMessage>Trait Implementations§
Source§impl Clone for ChatHistory
impl Clone for ChatHistory
Source§fn clone(&self) -> ChatHistory
fn clone(&self) -> ChatHistory
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 ChatHistory
impl Debug for ChatHistory
Source§impl Default for ChatHistory
impl Default for ChatHistory
Source§fn default() -> ChatHistory
fn default() -> ChatHistory
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for ChatHistory
impl RefUnwindSafe for ChatHistory
impl Send for ChatHistory
impl Sync for ChatHistory
impl Unpin for ChatHistory
impl UnsafeUnpin for ChatHistory
impl UnwindSafe for ChatHistory
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