pub struct ConversationMeta {
pub id: String,
pub started_at: Option<DateTime<Utc>>,
pub last_activity: Option<DateTime<Utc>>,
pub message_count: usize,
pub file_path: Option<PathBuf>,
pub predecessor: Option<SessionLink>,
pub successor: Option<SessionLink>,
}Expand description
Lightweight metadata for a conversation (no turns loaded).
Returned by ConversationProvider::load_metadata and
ConversationProvider::list_metadata for listing conversations
without the cost of loading all turns.
Fields§
§id: StringUnique session/conversation identifier.
started_at: Option<DateTime<Utc>>When the conversation started.
last_activity: Option<DateTime<Utc>>When the conversation was last active.
message_count: usizeTotal number of messages (entries) in the conversation.
file_path: Option<PathBuf>Path to the backing file, if file-based.
predecessor: Option<SessionLink>Link to the preceding session segment (if this is a continuation).
successor: Option<SessionLink>Link to the following session segment (if this was continued).
Trait Implementations§
Source§impl Clone for ConversationMeta
impl Clone for ConversationMeta
Source§fn clone(&self) -> ConversationMeta
fn clone(&self) -> ConversationMeta
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 ConversationMeta
impl Debug for ConversationMeta
Source§impl<'de> Deserialize<'de> for ConversationMeta
impl<'de> Deserialize<'de> for ConversationMeta
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 ConversationMeta
impl RefUnwindSafe for ConversationMeta
impl Send for ConversationMeta
impl Sync for ConversationMeta
impl Unpin for ConversationMeta
impl UnsafeUnpin for ConversationMeta
impl UnwindSafe for ConversationMeta
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