pub struct TranscriptEntry {
pub role: String,
pub content: String,
pub timestamp: Option<DateTime<Utc>>,
pub metadata: Option<SessionMetadata>,
}Expand description
A flattened transcript entry suitable for export.
Unlike SessionEntry, this omits internal fields (id, parent_id)
and presents only the conversation-relevant data.
Fields§
§role: StringThe role of this entry: "user", "assistant", or "system".
content: StringThe content of this entry.
timestamp: Option<DateTime<Utc>>When this entry was created. None for entries without a timestamp.
metadata: Option<SessionMetadata>Optional metadata (provider, model, token count, etc.).
Trait Implementations§
Source§impl Clone for TranscriptEntry
impl Clone for TranscriptEntry
Source§fn clone(&self) -> TranscriptEntry
fn clone(&self) -> TranscriptEntry
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 TranscriptEntry
impl Debug for TranscriptEntry
Source§impl<'de> Deserialize<'de> for TranscriptEntry
impl<'de> Deserialize<'de> for TranscriptEntry
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
Source§impl From<&SessionEntry> for TranscriptEntry
impl From<&SessionEntry> for TranscriptEntry
Source§fn from(entry: &SessionEntry) -> Self
fn from(entry: &SessionEntry) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for TranscriptEntry
impl RefUnwindSafe for TranscriptEntry
impl Send for TranscriptEntry
impl Sync for TranscriptEntry
impl Unpin for TranscriptEntry
impl UnsafeUnpin for TranscriptEntry
impl UnwindSafe for TranscriptEntry
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