pub struct ConversationSnapshot {
pub instructions: Option<String>,
pub messages: Vec<ChatMessage>,
}Expand description
Conversation snapshot used to reconstruct chat history.
Fields§
§instructions: Option<String>§messages: Vec<ChatMessage>Trait Implementations§
Source§impl Clone for ConversationSnapshot
impl Clone for ConversationSnapshot
Source§fn clone(&self) -> ConversationSnapshot
fn clone(&self) -> ConversationSnapshot
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 moreAuto Trait Implementations§
impl Freeze for ConversationSnapshot
impl RefUnwindSafe for ConversationSnapshot
impl Send for ConversationSnapshot
impl Sync for ConversationSnapshot
impl Unpin for ConversationSnapshot
impl UnsafeUnpin for ConversationSnapshot
impl UnwindSafe for ConversationSnapshot
Blanket Implementations§
Source§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
Source§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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