pub struct ContextHistoryEntry {
pub context_id: String,
pub conversation_id: ConversationId,
pub usage_type: ContextUsageType,
pub used_at: DateTime<Utc>,
pub usage_count: usize,
}Expand description
Entry in context usage history
Fields§
§context_id: StringID of the context item that was used
conversation_id: ConversationIdConversation where it was used
usage_type: ContextUsageTypeHow the context was used
used_at: DateTime<Utc>When it was used
usage_count: usizeHow many times it’s been used in this conversation
Trait Implementations§
Source§impl Clone for ContextHistoryEntry
impl Clone for ContextHistoryEntry
Source§fn clone(&self) -> ContextHistoryEntry
fn clone(&self) -> ContextHistoryEntry
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 ContextHistoryEntry
impl Debug for ContextHistoryEntry
Source§impl<'de> Deserialize<'de> for ContextHistoryEntry
impl<'de> Deserialize<'de> for ContextHistoryEntry
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 ContextHistoryEntry
impl RefUnwindSafe for ContextHistoryEntry
impl Send for ContextHistoryEntry
impl Sync for ContextHistoryEntry
impl Unpin for ContextHistoryEntry
impl UnwindSafe for ContextHistoryEntry
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