pub struct ChatSessionHistory {
pub session_id: String,
pub created_at: String,
pub updated_at: String,
pub messages: Vec<ChatMessageRecord>,
pub metadata: Option<HashMap<String, Value>>,
}Expand description
Session-level message history structure
Fields§
§session_id: StringSession ID (identity identifier for the entire conversation)
created_at: StringSession creation time
updated_at: StringSession last update time
messages: Vec<ChatMessageRecord>Message list (in chronological order)
metadata: Option<HashMap<String, Value>>Session-level metadata
Trait Implementations§
Source§impl Clone for ChatSessionHistory
impl Clone for ChatSessionHistory
Source§fn clone(&self) -> ChatSessionHistory
fn clone(&self) -> ChatSessionHistory
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 ChatSessionHistory
impl Debug for ChatSessionHistory
Source§impl<'de> Deserialize<'de> for ChatSessionHistory
impl<'de> Deserialize<'de> for ChatSessionHistory
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 ChatSessionHistory
impl RefUnwindSafe for ChatSessionHistory
impl Send for ChatSessionHistory
impl Sync for ChatSessionHistory
impl Unpin for ChatSessionHistory
impl UnwindSafe for ChatSessionHistory
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